@samitouri / QOSamiQemu / commits / 14c29f2906

pc-bios/s390-ccw: Fix compiler warning when compiling with DEBUG enabled

When compiling with DEBUG=1, there is currently a compiler warning: pc-bios/s390-ccw: Compiling main.o In file included from /home/thuth/devel/qemu/pc-bios/s390-ccw/main.c:14: In file included from /home/thuth/devel/qemu/pc-bios/s390-ccw/helper.h:16: /home/thuth/devel/qemu/pc-bios/s390-ccw/s390-ccw.h:122:31: warning: format specifies type 'unsigned int' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat] 122 | printf("%s 0x%X\n", desc, addr); | ~~ ^~~~ | %llX 1 warning generated. Fix it by using the right format string here. Message-ID: <20260306203645.28232-1-thuth@redhat.com> Reviewed-by: Farhan Ali<alifm@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>

Thomas Huth committed Mar 6, 2026 at 21:36 UTC 14c29f29064dc05088ca2b97afb7e783aa1697a0
1 file changed +1 -1
pc-bios/s390-ccw/s390-ccw.h
+1 -1
@@ -112,7 +112,7 @@ static inline void fill_hex_val(char *out, void *ptr, unsigned size)
112 static inline void debug_print_int(const char *desc, u64 addr)
113 {
114 #ifdef DEBUG
115 - printf("%s 0x%X\n", desc, addr);
115 + printf("%s 0x%llx\n", desc, addr);
116 #endif
117 }
118