From: Alistair Francis Date: Mon, 11 Sep 2017 19:52:59 +0000 (-0700) Subject: target/mips: Convert VM clock update prints to warn_report X-Git-Tag: qemu-xen-4.11.0-rc1~165^2~13 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=288cb9490ba13e0572e44a67df8c9c2f703c7847;p=qemu-xen.git target/mips: Convert VM clock update prints to warn_report 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 Cc: James Hogan Message-Id: Signed-off-by: Paolo Bonzini --- 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"); } } }