[PATCH] ntdll: Fix printf format to use unsigned integers (PVS-Studio)

Nikolay Sivov nsivov at codeweavers.com
Wed Oct 28 13:36:15 CDT 2015


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/ntdll/nt.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index d2ed9c5..8ea1ddd 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -1307,9 +1307,9 @@ static inline BOOL logical_proc_info_add_numa_node(SYSTEM_LOGICAL_PROCESSOR_INFO
 
 static NTSTATUS create_logical_proc_info(SYSTEM_LOGICAL_PROCESSOR_INFORMATION **data, DWORD *max_len)
 {
-    static const char core_info[] = "/sys/devices/system/cpu/cpu%d/%s";
-    static const char cache_info[] = "/sys/devices/system/cpu/cpu%d/cache/index%d/%s";
-    static const char numa_info[] = "/sys/devices/system/node/node%d/cpumap";
+    static const char core_info[] = "/sys/devices/system/cpu/cpu%u/%s";
+    static const char cache_info[] = "/sys/devices/system/cpu/cpu%u/cache/index%u/%s";
+    static const char numa_info[] = "/sys/devices/system/node/node%u/cpumap";
 
     FILE *fcpu_list, *fnuma_list, *f;
     DWORD len = 0, beg, end, i, j, r;
-- 
2.6.1




More information about the wine-patches mailing list