diff options
author | David Edmondson <david.edmondson@oracle.com> | 2021-04-28 15:24:31 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-05-02 17:24:50 +0200 |
commit | 56567da376e1dd443e06d3c1026f0a5e58abbfa9 (patch) | |
tree | 086de8e9f1b593b3f7ab773e68961f59543a323b /accel/kvm/kvm-all.c | |
parent | 53c5433e84e8935abed8e91d4a2eb813168a0ecf (diff) | |
download | qemu-56567da376e1dd443e06d3c1026f0a5e58abbfa9.zip qemu-56567da376e1dd443e06d3c1026f0a5e58abbfa9.tar.gz qemu-56567da376e1dd443e06d3c1026f0a5e58abbfa9.tar.bz2 |
accel: kvm: clarify that extra exit data is hexadecimal
When dumping the extra exit data provided by KVM, make it clear that
the data is hexadecimal.
At the same time, zero-pad the output.
Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210428142431.266879-1-david.edmondson@oracle.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'accel/kvm/kvm-all.c')
-rw-r--r-- | accel/kvm/kvm-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index b6d9f92..93d7cbf 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -2269,7 +2269,7 @@ static int kvm_handle_internal_error(CPUState *cpu, struct kvm_run *run) int i; for (i = 0; i < run->internal.ndata; ++i) { - fprintf(stderr, "extra data[%d]: %"PRIx64"\n", + fprintf(stderr, "extra data[%d]: 0x%016"PRIx64"\n", i, (uint64_t)run->internal.data[i]); } } |