aboutsummaryrefslogtreecommitdiff
path: root/target/mips/kvm.c
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@xilinx.com>2017-09-11 12:52:59 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2017-09-19 14:09:34 +0200
commit288cb9490ba13e0572e44a67df8c9c2f703c7847 (patch)
tree05c1b427be59c11fb4ecff277fdc3a694e6b8d81 /target/mips/kvm.c
parentb62e39b4690348d6b162a5506ea93523498c2563 (diff)
downloadqemu-288cb9490ba13e0572e44a67df8c9c2f703c7847.zip
qemu-288cb9490ba13e0572e44a67df8c9c2f703c7847.tar.gz
qemu-288cb9490ba13e0572e44a67df8c9c2f703c7847.tar.bz2
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 <alistair.francis@xilinx.com> Cc: James Hogan <james.hogan@imgtec.com> Message-Id: <e6acff8db6d264f913a18c86858b9aa600554e51.1505158760.git.alistair.francis@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/mips/kvm.c')
-rw-r--r--target/mips/kvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/mips/kvm.c b/target/mips/kvm.c
index a23aa43..3b7b1d9 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");
}
}
}