diff --git a/kvm-all.c b/kvm-all.c index 951e6e343f..9f18ea38b9 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1436,7 +1436,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