From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGkLZ-0005cU-RC for qemu-devel@nongnu.org; Tue, 03 Sep 2013 02:44:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGkLR-0003SR-CC for qemu-devel@nongnu.org; Tue, 03 Sep 2013 02:44:17 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:50611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGkLQ-0003RJ-Io for qemu-devel@nongnu.org; Tue, 03 Sep 2013 02:44:09 -0400 Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Sep 2013 16:33:17 +1000 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [9.190.234.120]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 3FE1E2BB0055 for ; Tue, 3 Sep 2013 16:43:58 +1000 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r836RbhN57344030 for ; Tue, 3 Sep 2013 16:27:45 +1000 Received: from d23av03.au.ibm.com (localhost [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r836hnbN028394 for ; Tue, 3 Sep 2013 16:43:50 +1000 From: Alexey Kardashevskiy Date: Tue, 3 Sep 2013 16:43:46 +1000 Message-Id: <1378190626-21986-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH] kvm: fix traces to use %x instead of %d List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Paolo Bonzini KVM request types are normally defined using hex constants but QEMU traces print decimal values instead what is not very convinient. This changes the request type format from %d to %x. Signed-off-by: Alexey Kardashevskiy --- trace-events | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trace-events b/trace-events index 4574f29..24cf4d2 100644 --- a/trace-events +++ b/trace-events @@ -1171,9 +1171,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 %x, arg %p" +kvm_vm_ioctl(int type, void *arg) "type %x, arg %p" +kvm_vcpu_ioctl(int cpu_index, int type, void *arg) "cpu_index %d, type %x, arg %p" kvm_run_exit(int cpu_index, uint32_t reason) "cpu_index %d, reason %d" # memory.c -- 1.8.4.rc4