Reactos

[REACTOS] Fix traces with missing arguments.

Courtesy of VS Code Analysis warning C6064:
Missing integer argument to 'DbgPrint' that corresponds to conversion specifier 'N'.

+19 -16
+1 -1
base/services/dcomlaunch/dcomlaunch.c
··· 90 90 return ERROR_SUCCESS; 91 91 92 92 default : 93 - DPRINT1(" Control %lu received\n"); 93 + DPRINT1(" Control %lu received\n", dwControl); 94 94 return ERROR_CALL_NOT_IMPLEMENTED; 95 95 } 96 96 }
+1 -1
base/services/wmisvc/wmisvc.c
··· 112 112 return ERROR_SUCCESS; 113 113 114 114 default : 115 - DPRINT1(" Control %lu received\n"); 115 + DPRINT1(" Control %lu received\n", dwControl); 116 116 return ERROR_CALL_NOT_IMPLEMENTED; 117 117 } 118 118 }
+1 -1
base/services/wuauserv/wuauserv.c
··· 82 82 return ERROR_SUCCESS; 83 83 84 84 default : 85 - DPRINT1("WU ServiceControlHandler() Control %lu received\n"); 85 + DPRINT1("WU ServiceControlHandler() Control %lu received\n", dwControl); 86 86 return ERROR_CALL_NOT_IMPLEMENTED; 87 87 } 88 88 }
+2 -2
dll/win32/kernel32/winnls/string/lang.c
··· 3239 3239 { 3240 3240 ENUMSYSTEMCODEPAGES_CALLBACKS procs; 3241 3241 3242 - TRACE("(%p,0x%08X,0x%08lX)\n", lpCodePageEnumProc, dwFlags); 3242 + TRACE("(%p,0x%08X)\n", lpCodePageEnumProc, dwFlags); 3243 3243 3244 3244 procs.procA = NULL; 3245 3245 procs.procW = lpCodePageEnumProc; ··· 3261 3261 { 3262 3262 ENUMSYSTEMCODEPAGES_CALLBACKS procs; 3263 3263 3264 - TRACE("(%p,0x%08X,0x%08lX)\n", lpCodePageEnumProc, dwFlags); 3264 + TRACE("(%p,0x%08X)\n", lpCodePageEnumProc, dwFlags); 3265 3265 3266 3266 procs.procA = lpCodePageEnumProc; 3267 3267 procs.procW = NULL;
+4 -3
drivers/bus/acpi/cmbatt/cmbatt.c
··· 65 65 else if (CmBattDebug & 0x10) 66 66 { 67 67 /* Unknown value */ 68 - DbgPrint("CmBattPowerCallBack: unknown argument2 = %08x\n"); 68 + DbgPrint("CmBattPowerCallBack: unknown argument2 = %08x\n", Value); 69 69 } 70 70 } 71 71 } ··· 770 770 DbgPrint("CmBattSetStatusNotify: Want %X CurrentCap %X\n", 771 771 Capacity, DeviceExtension->RemainingCapacity); 772 772 if (CmBattDebug & CMBATT_ACPI_WARNING) 773 - DbgPrint("CmBattSetStatusNotify: Set to: [%#08lx][%#08lx][%#08lx] Status %x\n", 773 + DbgPrint("CmBattSetStatusNotify: Set to: [%#08lx][%#08lx][%#08lx] Status %lx\n", 774 774 BatteryNotify->PowerState, 775 775 BatteryNotify->LowCapacity, 776 - BatteryNotify->HighCapacity); 776 + BatteryNotify->HighCapacity, 777 + Status); 777 778 return Status; 778 779 } 779 780
+1 -1
drivers/network/ndis/ndis/config.c
··· 553 553 (*ParameterValue)->ParameterData.IntegerData = NDIS_VERSION; 554 554 *Status = NDIS_STATUS_SUCCESS; 555 555 556 - NDIS_DbgPrint(MAX_TRACE,("ParameterType = %0x%x, ParameterValue = 0x%x\n", 556 + NDIS_DbgPrint(MAX_TRACE,("ParameterType = 0x%x, ParameterValue = 0x%x\n", 557 557 (*ParameterValue)->ParameterType, (*ParameterValue)->ParameterData.IntegerData)); 558 558 return; 559 559 }
+1 -1
drivers/wdm/audio/drivers/CMIDriver/minwave.cpp
··· 83 83 { 84 84 PAGED_CODE(); 85 85 ASSERT(Object); 86 - DBGPRINT(("CMiniportWaveCMI[%p]::NonDelegatingQueryInterface")); 86 + DBGPRINT(("CMiniportWaveCMI[%p]::NonDelegatingQueryInterface", this)); 87 87 88 88 if (IsEqualGUIDAligned(Interface,IID_IUnknown)) { 89 89 #ifdef WAVERT
+3 -2
ntoskrnl/mm/i386/page.c
··· 261 261 { 262 262 if ((Address >= MmSystemRangeStart) || Add2Ptr(Address, PAGE_SIZE) >= MmSystemRangeStart) 263 263 { 264 - DPRINT1("Process %p given for kernel-mode mapping at %p -- %lu pages starting at %Ix\n", Process, Address); 264 + DPRINT1("Process %p given for kernel-mode mapping at %p\n", Process, Address); 265 265 KeBugCheck(MEMORY_MANAGEMENT); 266 266 } 267 267 ··· 625 625 { 626 626 if ((Address >= MmSystemRangeStart) || Add2Ptr(Address, PAGE_SIZE) >= MmSystemRangeStart) 627 627 { 628 - DPRINT1("Process %p given for kernel-mode mapping at %p -- %lu pages starting at %Ix\n", Process, Address); 628 + DPRINT1("Process %p given for kernel-mode mapping at %p -- 1 page starting at %Ix\n", 629 + Process, Address, Page); 629 630 KeBugCheck(MEMORY_MANAGEMENT); 630 631 } 631 632
+2 -2
ntoskrnl/se/token.c
··· 6352 6352 KernelMode, &NewToken); 6353 6353 if (!NT_SUCCESS(Status)) 6354 6354 { 6355 - DPRINT1("NtOpenThreadTokenEx(): Failed to duplicate the token (Status 0x%lx)\n"); 6355 + DPRINT1("NtOpenThreadTokenEx(): Failed to duplicate the token (Status 0x%lx)\n", Status); 6356 6356 } 6357 6357 6358 6358 ObReferenceObject(NewToken); ··· 6393 6393 Status = PsImpersonateClient(Thread, NewToken, FALSE, EffectiveOnly, ImpersonationLevel); 6394 6394 if (!NT_SUCCESS(Status)) 6395 6395 { 6396 - DPRINT1("NtOpenThreadTokenEx(): Failed to impersonate the client (Status 0x%lx)\n"); 6396 + DPRINT1("NtOpenThreadTokenEx(): Failed to impersonate the client (Status 0x%lx)\n", Status); 6397 6397 } 6398 6398 } 6399 6399
+2 -1
ntoskrnl/wmi/smbios.c
··· 182 182 'BTMS'); 183 183 if (BiosTables == NULL) 184 184 { 185 - DPRINT1("Failed to allocate %lu bytes for the SMBIOS table\n"); 185 + DPRINT1("Failed to allocate %lu bytes for the SMBIOS table\n", 186 + HeaderSize + TableSize); 186 187 return STATUS_INSUFFICIENT_RESOURCES; 187 188 } 188 189
+1 -1
win32ss/user/ntuser/defwnd.c
··· 414 414 * RealUserDrawCaption in order to draw the classic caption when themes 415 415 * are disabled but the themes service is enabled 416 416 */ 417 - TRACE("UDCB Flags %08x\n"); 417 + TRACE("UDCB Flags %08x\n", Flags); 418 418 co_IntSendMessage(UserHMGetHandle(pWnd), WM_NCUAHDRAWCAPTION, Flags, 0); 419 419 } 420 420 else