From 0e6f66a21f659fb0148b112ad61370f49b20eba7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Menil Date: Tue, 8 May 2012 15:48:15 +0200 Subject: [PATCH] kvm tools: Fix printf() format string in kvm__load_firmware() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes the following build breakage with '-Werror': cc1: warnings being treated as errors x86/boot.c: In function ‘kvm__load_firmware’: x86/boot.c:29: error: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘__off64_t’ make: *** [x86/boot.o] Erreur 1 Signed-off-by: Jean-Philippe Menil Signed-off-by: Pekka Enberg --- tools/kvm/x86/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/x86/boot.c b/tools/kvm/x86/boot.c index c434030f5b2e..93d96773e7da 100644 --- a/tools/kvm/x86/boot.c +++ b/tools/kvm/x86/boot.c @@ -26,7 +26,7 @@ bool kvm__load_firmware(struct kvm *kvm, const char *firmware_filename) return false; if (st.st_size > MB_FIRMWARE_BIOS_SIZE) - die("firmware image %s is too big to fit in memory (%lu KB).\n", firmware_filename, st.st_size / 1024); + die("firmware image %s is too big to fit in memory (%Lu KB).\n", firmware_filename, (u64)(st.st_size / 1024)); p = guest_flat_to_host(kvm, MB_FIRMWARE_BIOS_BEGIN); -- 2.39.5