aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-02-27 16:00:30 +0000
committerPeter Maydell <peter.maydell@linaro.org>2014-02-27 16:00:31 +0000
commit9fbee91a131a05e443d7108d7fbdf3ca91020290 (patch)
treecb5507e8ceac38f389f998566b8c7d3e6cf4d1f6 /kvm-all.c
parent73795cea968ba2e9342a3122cd66d52d13d46a61 (diff)
parent521f438e36b0265d66862e9cd35e4db82686ca9f (diff)
Merge remote-tracking branch 'remotes/kvm/uq/master' into staging
* remotes/kvm/uq/master: KVM: Use return value for error print Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 290e726cfe..fd8157ad5e 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1435,7 +1435,7 @@ int kvm_init(void)
} while (ret == -EINTR);
if (ret < 0) {
- fprintf(stderr, "ioctl(KVM_CREATE_VM) failed: %d %s\n", -s->vmfd,
+ fprintf(stderr, "ioctl(KVM_CREATE_VM) failed: %d %s\n", -ret,
strerror(-ret));
#ifdef TARGET_S390X