Commit-ID: 0e6f66a21f659fb0148b112ad61370f49b20eba7 Gitweb: http://git.kernel.org/tip/0e6f66a21f659fb0148b112ad61370f49b20eba7 Author: Jean-Philippe Menil <jean-philippe.menil@xxxxxxxxxxxxxx> AuthorDate: Tue, 8 May 2012 15:48:15 +0200 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Tue, 8 May 2012 17:11:26 +0300 kvm tools: Fix printf() format string in kvm__load_firmware() 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 <jean-philippe.menil@xxxxxxxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/x86/boot.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/kvm/x86/boot.c b/tools/kvm/x86/boot.c index c434030..93d9677 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); -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html