From 38fdeb0d719f4bc10946cf0bb72cb8dfcae032ba Mon Sep 17 00:00:00 2001 From: Assaf Carlsbad Date: Fri, 13 Dec 2019 13:11:27 -0800 Subject: [PATCH] Delete extra argument passed to DbgPrint not used by format string. --- drivers/win7/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/win7/driver.c b/drivers/win7/driver.c index 5a03afb3..8b96e852 100644 --- a/drivers/win7/driver.c +++ b/drivers/win7/driver.c @@ -605,7 +605,7 @@ DriverDeviceControl( RtlCopyBytes( &va, (BYTE*)Irp->AssociatedIrp.SystemBuffer, sizeof(UINTN) ); pa = MmGetPhysicalAddress( (PVOID)va ); - DbgPrint( "[chipsec][IOCTL_GET_PHYSADDR] Translated virtual address 0x%I64X to physical: 0x%I64X\n", va, pa.QuadPart, pa.LowPart); + DbgPrint( "[chipsec][IOCTL_GET_PHYSADDR] Translated virtual address 0x%I64X to physical: 0x%I64X\n", va, pa.QuadPart); RtlCopyBytes( Irp->AssociatedIrp.SystemBuffer, (void*)&pa, sizeof(UINTN) ); IrpSp->Parameters.Read.Length = sizeof(UINTN); dwBytesWritten = IrpSp->Parameters.Read.Length;