[REACTOS] Fix traces with missing arguments.

Courtesy of VS Code Analysis warning C6064:
Missing integer argument to 'DbgPrint' that corresponds to conversion specifier 'N'.
This commit is contained in:
Thomas Faber 2021-11-21 12:37:04 -05:00
parent a7b2703479
commit 0af3689c2e
No known key found for this signature in database
GPG Key ID: 076E7C3D44720826
11 changed files with 19 additions and 16 deletions

View File

@ -90,7 +90,7 @@ ServiceControlHandler(DWORD dwControl,
return ERROR_SUCCESS;
default :
DPRINT1(" Control %lu received\n");
DPRINT1(" Control %lu received\n", dwControl);
return ERROR_CALL_NOT_IMPLEMENTED;
}
}

View File

@ -112,7 +112,7 @@ ServiceControlHandler(DWORD dwControl,
return ERROR_SUCCESS;
default :
DPRINT1(" Control %lu received\n");
DPRINT1(" Control %lu received\n", dwControl);
return ERROR_CALL_NOT_IMPLEMENTED;
}
}

View File

@ -82,7 +82,7 @@ ServiceControlHandler(DWORD dwControl,
return ERROR_SUCCESS;
default :
DPRINT1("WU ServiceControlHandler() Control %lu received\n");
DPRINT1("WU ServiceControlHandler() Control %lu received\n", dwControl);
return ERROR_CALL_NOT_IMPLEMENTED;
}
}

View File

@ -3239,7 +3239,7 @@ EnumSystemCodePagesW (
{
ENUMSYSTEMCODEPAGES_CALLBACKS procs;
TRACE("(%p,0x%08X,0x%08lX)\n", lpCodePageEnumProc, dwFlags);
TRACE("(%p,0x%08X)\n", lpCodePageEnumProc, dwFlags);
procs.procA = NULL;
procs.procW = lpCodePageEnumProc;
@ -3261,7 +3261,7 @@ EnumSystemCodePagesA (
{
ENUMSYSTEMCODEPAGES_CALLBACKS procs;
TRACE("(%p,0x%08X,0x%08lX)\n", lpCodePageEnumProc, dwFlags);
TRACE("(%p,0x%08X)\n", lpCodePageEnumProc, dwFlags);
procs.procA = lpCodePageEnumProc;
procs.procW = NULL;

View File

@ -65,7 +65,7 @@ CmBattPowerCallBack(IN PCMBATT_DEVICE_EXTENSION DeviceExtension,
else if (CmBattDebug & 0x10)
{
/* Unknown value */
DbgPrint("CmBattPowerCallBack: unknown argument2 = %08x\n");
DbgPrint("CmBattPowerCallBack: unknown argument2 = %08x\n", Value);
}
}
}
@ -770,10 +770,11 @@ CmBattSetStatusNotify(IN PCMBATT_DEVICE_EXTENSION DeviceExtension,
DbgPrint("CmBattSetStatusNotify: Want %X CurrentCap %X\n",
Capacity, DeviceExtension->RemainingCapacity);
if (CmBattDebug & CMBATT_ACPI_WARNING)
DbgPrint("CmBattSetStatusNotify: Set to: [%#08lx][%#08lx][%#08lx] Status %x\n",
DbgPrint("CmBattSetStatusNotify: Set to: [%#08lx][%#08lx][%#08lx] Status %lx\n",
BatteryNotify->PowerState,
BatteryNotify->LowCapacity,
BatteryNotify->HighCapacity);
BatteryNotify->HighCapacity,
Status);
return Status;
}

View File

@ -553,7 +553,7 @@ NdisReadConfiguration(
(*ParameterValue)->ParameterData.IntegerData = NDIS_VERSION;
*Status = NDIS_STATUS_SUCCESS;
NDIS_DbgPrint(MAX_TRACE,("ParameterType = %0x%x, ParameterValue = 0x%x\n",
NDIS_DbgPrint(MAX_TRACE,("ParameterType = 0x%x, ParameterValue = 0x%x\n",
(*ParameterValue)->ParameterType, (*ParameterValue)->ParameterData.IntegerData));
return;
}

View File

@ -83,7 +83,7 @@ STDMETHODIMP CMiniportWaveCMI::NonDelegatingQueryInterface(REFIID Interface, PVO
{
PAGED_CODE();
ASSERT(Object);
DBGPRINT(("CMiniportWaveCMI[%p]::NonDelegatingQueryInterface"));
DBGPRINT(("CMiniportWaveCMI[%p]::NonDelegatingQueryInterface", this));
if (IsEqualGUIDAligned(Interface,IID_IUnknown)) {
#ifdef WAVERT

View File

@ -261,7 +261,7 @@ MmDeleteVirtualMapping(PEPROCESS Process, PVOID Address,
{
if ((Address >= MmSystemRangeStart) || Add2Ptr(Address, PAGE_SIZE) >= MmSystemRangeStart)
{
DPRINT1("Process %p given for kernel-mode mapping at %p -- %lu pages starting at %Ix\n", Process, Address);
DPRINT1("Process %p given for kernel-mode mapping at %p\n", Process, Address);
KeBugCheck(MEMORY_MANAGEMENT);
}
@ -625,7 +625,8 @@ MmCreateVirtualMappingUnsafe(PEPROCESS Process,
{
if ((Address >= MmSystemRangeStart) || Add2Ptr(Address, PAGE_SIZE) >= MmSystemRangeStart)
{
DPRINT1("Process %p given for kernel-mode mapping at %p -- %lu pages starting at %Ix\n", Process, Address);
DPRINT1("Process %p given for kernel-mode mapping at %p -- 1 page starting at %Ix\n",
Process, Address, Page);
KeBugCheck(MEMORY_MANAGEMENT);
}

View File

@ -6352,7 +6352,7 @@ NtOpenThreadTokenEx(
KernelMode, &NewToken);
if (!NT_SUCCESS(Status))
{
DPRINT1("NtOpenThreadTokenEx(): Failed to duplicate the token (Status 0x%lx)\n");
DPRINT1("NtOpenThreadTokenEx(): Failed to duplicate the token (Status 0x%lx)\n", Status);
}
ObReferenceObject(NewToken);
@ -6393,7 +6393,7 @@ NtOpenThreadTokenEx(
Status = PsImpersonateClient(Thread, NewToken, FALSE, EffectiveOnly, ImpersonationLevel);
if (!NT_SUCCESS(Status))
{
DPRINT1("NtOpenThreadTokenEx(): Failed to impersonate the client (Status 0x%lx)\n");
DPRINT1("NtOpenThreadTokenEx(): Failed to impersonate the client (Status 0x%lx)\n", Status);
}
}

View File

@ -182,7 +182,8 @@ WmipGetRawSMBiosTableData(
'BTMS');
if (BiosTables == NULL)
{
DPRINT1("Failed to allocate %lu bytes for the SMBIOS table\n");
DPRINT1("Failed to allocate %lu bytes for the SMBIOS table\n",
HeaderSize + TableSize);
return STATUS_INSUFFICIENT_RESOURCES;
}

View File

@ -414,7 +414,7 @@ UserPaintCaption(PWND pWnd, INT Flags)
* RealUserDrawCaption in order to draw the classic caption when themes
* are disabled but the themes service is enabled
*/
TRACE("UDCB Flags %08x\n");
TRACE("UDCB Flags %08x\n", Flags);
co_IntSendMessage(UserHMGetHandle(pWnd), WM_NCUAHDRAWCAPTION, Flags, 0);
}
else