kvm: fix traces to use %x instead of %d
PATCH v2 1/1 kvm: fix traces to use %x instead of %d
KVM request types are normally defined using hex constants but QEMU traces print decimal values instead, which is not very convenient.
This changes the request type format from %d to %x.
---
Changes:
v2:
* added "0x" to format strings so the change won't come unnoticed
* fixed the commit message
--- trace-events | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
trace-events +3 -3
@@ -1167,9 +1167,9 @@ virtio_ccw_new_device(int cssid, int ssid, int schid, int devno, const char *dev migrate_set_state(int new_state) "new state %d" # kvm-all.c -kvm_ioctl(int type, void *arg) "type %d, arg %p" -kvm_vm_ioctl(int type, void *arg) "type %d, arg %p" -kvm_vcpu_ioctl(int cpu_index, int type, void *arg) "cpu_index %d, type %d, arg %p" +kvm_ioctl(int type, void *arg) "type 0x%x, arg %p" +kvm_vm_ioctl(int type, void *arg) "type 0x%x, arg %p" +kvm_vcpu_ioctl(int cpu_index, int type, void *arg) "cpu_index %d, type 0x%x, arg %p" kvm_run_exit(int cpu_index, uint32_t reason) "cpu_index %d, reason %d" # memory.c
Signature · 1 line
1.8.4.rc4
Stefan Hajnoczi
AppliedQuoted 8 lines · Alexey Kardashevskiy
KVM request types are normally defined using hex constants but QEMU traces print decimal values instead, which is not very convenient.
This changes the request type format from %d to %x.
Signed-off-by Alexey Kardashevskiy <[email protected]>Reviewed-by Andreas Färber <[email protected]>Reviewed-by Paolo Bonzini <[email protected]>
Quoted 8 lines
---
Changes:
v2:
* added "0x" to format strings so the change won't come unnoticed
* fixed the commit message--- trace-events | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Thanks, applied to my tracing tree:
https://github.com/stefanha/qemu/commits/tracing
Stefan
Il 09/09/2013 14:07, Stefan Hajnoczi ha scritto:
Quoted 18 lines · Alexey Kardashevskiy
Quoted 8 lines
KVM request types are normally defined using hex constants but QEMU traces print decimal values instead, which is not very convenient.
This changes the request type format from %d to %x.
Signed-off-by Alexey Kardashevskiy <[email protected]>Reviewed-by Andreas Färber <[email protected]>Reviewed-by Paolo Bonzini <[email protected]>Quoted 8 lines
---
Changes:
v2:
* added "0x" to format strings so the change won't come unnoticed
* fixed the commit message--- trace-events | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 2 lines
Thanks, applied to my tracing tree:
https://github.com/stefanha/qemu/commits/tracing
Applied also to uq/master, since I don't see it in github.
Paolo