Skip to contentSkip to conversation

plugin_kvm: fix kvm_exit rip formatting

PATCH Applied Avi Kivity 2 participants 2 messages Oct 11, 2010 KVM

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

PATCH 1/1 plugin_kvm: fix kvm_exit rip formatting

%0xlx is not a valid printf format.

---
 plugin_kvm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
plugin_kvm.c +1 -1
index cdd52c7..724143d 100644
@@ -153,7 +153,7 @@ static int kvm_exit_handler(struct trace_seq *s, struct record *record,
 
 	trace_seq_printf(s, "reason %s", find_vmx_reason(val));
 
-	pevent_print_num_field(s, " rip %0xlx", event, "guest_rip", record, 1);
+	pevent_print_num_field(s, " rip 0x%lx", event, "guest_rip", record, 1);
 
 	return 0;
 }
Signature · 1 line
1.7.3.1
#1 lore raw
Quoted 3 lines · Avi Kivity

%0xlx is not a valid printf format.

Applied, thanks!

-- Steve

Quoted 17 lines
---
 plugin_kvm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
plugin_kvm.c +1 -1
index cdd52c7..724143d 100644
@@ -153,7 +153,7 @@ static int kvm_exit_handler(struct trace_seq *s, struct record *record,
 
 	trace_seq_printf(s, "reason %s", find_vmx_reason(val));
 
-	pevent_print_num_field(s, " rip %0xlx", event, "guest_rip", record, 1);
+	pevent_print_num_field(s, " rip 0x%lx", event, "guest_rip", record, 1);
 
 	return 0;
 }