accel: kvm: clarify that extra exit data is hexadecimal
PATCH 1/1 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 <[email protected]>
--- accel/kvm/kvm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
accel/kvm/kvm-all.c +1 -1
@@ -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]); } }
Signature · 1 line
2.30.2
Quoted 9 lines · David Edmondson
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 <[email protected]>--- accel/kvm/kvm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Laurent Vivier
AppliedLe 28/04/2021 à 16:24, David Edmondson a écrit :
Quoted 16 lines
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 <[email protected]>--- accel/kvm/kvm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)accel/kvm/kvm-all.c +0
-0
accel/kvm/kvm-all.c static int kvm_handle_internal_error(CPUState *cpu, struct kvm_run *run) · line 2275
Quoted 8 lines
accel/kvm/kvm-all.c +1
-1@@ -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]); } }
Applied to my trivial-patches branch.
Thanks,
Laurent