From: James Hogan <james.hogan@imgtec.com>
To: Alistair Francis <alistair.francis@xilinx.com>
Cc: qemu-devel@nongnu.org, alistair23@gmail.com, armbru@redhat.com,
pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCH v4 6/8] target/mips: Convert VM clock update prints to warn_report
Date: Mon, 11 Sep 2017 22:43:43 +0100 [thread overview]
Message-ID: <20170911214343.GC17077@jhogan-linux.le.imgtec.org> (raw)
In-Reply-To: <e6acff8db6d264f913a18c86858b9aa600554e51.1505158760.git.alistair.francis@xilinx.com>
[-- Attachment #1: Type: text/plain, Size: 1739 bytes --]
On Mon, Sep 11, 2017 at 12:52:59PM -0700, Alistair Francis wrote:
> Convert the fprintf() messages in kvm_mips_update_state() to use
> warn_report() as they aren't errors, but are just warnings.
>
> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
> Cc: James Hogan <james.hogan@imgtec.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Thanks
James
> ---
>
> target/mips/kvm.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/target/mips/kvm.c b/target/mips/kvm.c
> index a23aa438d2..3b7b1d962a 100644
> --- a/target/mips/kvm.c
> +++ b/target/mips/kvm.c
> @@ -526,7 +526,7 @@ static void kvm_mips_update_state(void *opaque, int running, RunState state)
> if (!cs->vcpu_dirty) {
> ret = kvm_mips_save_count(cs);
> if (ret < 0) {
> - fprintf(stderr, "Failed saving count\n");
> + warn_report("Failed saving count");
> }
> }
> } else {
> @@ -535,14 +535,14 @@ static void kvm_mips_update_state(void *opaque, int running, RunState state)
> ret = kvm_mips_put_one_ureg64(cs, KVM_REG_MIPS_COUNT_RESUME,
> &count_resume);
> if (ret < 0) {
> - fprintf(stderr, "Failed setting COUNT_RESUME\n");
> + warn_report("Failed setting COUNT_RESUME");
> return;
> }
>
> if (!cs->vcpu_dirty) {
> ret = kvm_mips_restore_count(cs);
> if (ret < 0) {
> - fprintf(stderr, "Failed restoring count\n");
> + warn_report("Failed restoring count");
> }
> }
> }
> --
> 2.11.0
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-09-11 21:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 19:52 [Qemu-devel] [PATCH v4 0/8] More warning reporting fixed Alistair Francis
2017-09-11 19:52 ` [Qemu-devel] [PATCH v4 1/8] hw/i386: Improve some of the warning messages Alistair Francis
2017-09-12 18:12 ` Eduardo Habkost
2017-09-11 19:52 ` [Qemu-devel] [PATCH v4 2/8] Convert remaining error_report() to warn_report() Alistair Francis
2017-09-11 19:52 ` [Qemu-devel] [PATCH v4 3/8] Convert single line fprintf(.../n) " Alistair Francis
2017-09-11 19:52 ` [Qemu-devel] [PATCH v4 4/8] Convert multi-line fprintf() " Alistair Francis
2017-09-11 19:52 ` [Qemu-devel] [PATCH v4 5/8] General warn report fixups Alistair Francis
2017-09-11 19:52 ` [Qemu-devel] [PATCH v4 6/8] target/mips: Convert VM clock update prints to warn_report Alistair Francis
2017-09-11 21:43 ` Philippe Mathieu-Daudé
2017-09-11 21:43 ` James Hogan [this message]
2017-09-11 19:53 ` [Qemu-devel] [PATCH v4 7/8] Makefile: Remove libqemustub.a Alistair Francis
2017-09-11 19:53 ` [Qemu-devel] [PATCH v4 8/8] Convert remaining single line fprintf() to warn_report() Alistair Francis
2017-09-11 20:19 ` [Qemu-devel] [PATCH v4 0/8] More warning reporting fixed no-reply
2017-09-12 7:49 ` Paolo Bonzini
2017-09-12 21:00 ` Paolo Bonzini
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=20170911214343.GC17077@jhogan-linux.le.imgtec.org \
--to=james.hogan@imgtec.com \
--cc=alistair.francis@xilinx.com \
--cc=alistair23@gmail.com \
--cc=armbru@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).