From: Andrew Jones Subject: [kvm-unit-tests PATCH 0/4] add fmt warnings to printf, and fix bad uses Date: Mon, 29 Feb 2016 21:19:11 +0100 Message-ID: <1456777155-8599-1-git-send-email-drjones@redhat.com> Cc: thuth@redhat.com, pbonzini@redhat.com, rkrcmar@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:53750 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbcB2UTY (ORCPT ); Mon, 29 Feb 2016 15:19:24 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id EF2D3A8C for ; Mon, 29 Feb 2016 20:19:23 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: Thomas suggested adding __attribute__((format(printf, i, j))) to our *printf functions. So I did. And then fixed all the warnings... Andrew Jones (4): lib: *printf: warn on format/arg mismatch lib/alloc: fix format warnings, add/use PRIx64 arm64: fix printf format warnings x86: fix printf format warnings lib/alloc.c | 13 +++++++------ lib/arm64/processor.c | 8 ++++---- lib/libcflat.h | 24 +++++++++++++++++++----- lib/x86/desc.c | 6 +++--- lib/x86/vm.c | 6 +++--- x86/access.c | 4 ++-- x86/eventinj.c | 8 ++++---- x86/kvmclock.c | 2 +- x86/kvmclock_test.c | 6 +++--- x86/msr.c | 2 +- x86/s3.c | 6 +++--- x86/svm.c | 12 ++++++------ x86/taskswitch.c | 2 +- x86/taskswitch2.c | 2 +- x86/tsc.c | 4 ++-- x86/tscdeadline_latency.c | 2 +- x86/vmx.c | 18 +++++++++--------- x86/vmx_tests.c | 20 ++++++++++---------- x86/xsave.c | 2 +- 19 files changed, 81 insertions(+), 66 deletions(-) -- 2.4.3