From: Thomas Huth <thuth@redhat.com>
To: Andrew Jones <drjones@redhat.com>, kvm@vger.kernel.org
Cc: pbonzini@redhat.com, rkrcmar@redhat.com
Subject: Re: [kvm-unit-tests PATCH v2 4/4] x86: fix printf format warnings
Date: Thu, 3 Mar 2016 10:57:54 +0100 [thread overview]
Message-ID: <56D80AA2.2030002@redhat.com> (raw)
In-Reply-To: <1456942034-21005-5-git-send-email-drjones@redhat.com>
On 02.03.2016 19:07, Andrew Jones wrote:
> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---
> 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 | 3 ++-
> x86/s3.c | 6 +++---
> x86/svm.c | 12 ++++++------
> x86/taskswitch.c | 2 +-
> x86/taskswitch2.c | 4 ++--
> x86/tsc.c | 4 ++--
> x86/tscdeadline_latency.c | 2 +-
> x86/vmx.c | 18 +++++++++---------
> x86/vmx_tests.c | 20 ++++++++++----------
> x86/xsave.c | 2 +-
> 16 files changed, 53 insertions(+), 52 deletions(-)
>
> diff --git a/lib/x86/desc.c b/lib/x86/desc.c
> index 1a80c01283853..12bcb57a42d1d 100644
> --- a/lib/x86/desc.c
> +++ b/lib/x86/desc.c
> @@ -53,7 +53,7 @@ static void check_exception_table(struct ex_regs *regs)
> return;
> }
> }
> - printf("unhandled exception %d\n", regs->vector);
> + printf("unhandled exception %lu\n", regs->vector);
> exit(7);
> }
>
> @@ -75,9 +75,9 @@ void do_handle_exception(struct ex_regs *regs)
> exception_handlers[regs->vector](regs);
> return;
> }
> - printf("unhandled cpu exception %d\n", regs->vector);
> + printf("unhandled cpu exception %ld\n", regs->vector);
Nit: That could be %lu here, too, as far as I can see.
Anyway, the remaining parts of the patch look fine, and it's really a
very small nit, so:
Reviewed-by: Thomas Huth <thuth@redhat.com>
next prev parent reply other threads:[~2016-03-03 9:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-02 18:07 [kvm-unit-tests PATCH v2 0/4] add fmt warnings to printf, and fix bad uses Andrew Jones
2016-03-02 18:07 ` [kvm-unit-tests PATCH v2 1/4] lib: *printf: warn on format/arg mismatch Andrew Jones
2016-03-02 18:07 ` [kvm-unit-tests PATCH v2 2/4] lib/alloc: fix format warnings, add/use PRIx64 Andrew Jones
2016-03-03 9:28 ` Thomas Huth
2016-03-03 12:22 ` Andrew Jones
2016-03-03 12:36 ` Paolo Bonzini
2016-03-02 18:07 ` [kvm-unit-tests PATCH v2 3/4] arm64: fix printf format warnings Andrew Jones
2016-03-03 9:41 ` Thomas Huth
2016-03-02 18:07 ` [kvm-unit-tests PATCH v2 4/4] x86: " Andrew Jones
2016-03-03 9:57 ` Thomas Huth [this message]
2016-03-03 12:26 ` Andrew Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56D80AA2.2030002@redhat.com \
--to=thuth@redhat.com \
--cc=drjones@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.