public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] plugin_kvm: fix kvm_exit rip formatting
@ 2010-10-11  8:58 Avi Kivity
  2010-10-11 20:19 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Avi Kivity @ 2010-10-11  8:58 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: kvm, linux-kernel, linux-trace-users

%0xlx is not a valid printf format.

Signed-off-by: Avi Kivity <avi@redhat.com>
---
 plugin_kvm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugin_kvm.c b/plugin_kvm.c
index cdd52c7..724143d 100644
--- a/plugin_kvm.c
+++ b/plugin_kvm.c
@@ -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;
 }
-- 
1.7.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] plugin_kvm: fix kvm_exit rip formatting
  2010-10-11  8:58 [PATCH] plugin_kvm: fix kvm_exit rip formatting Avi Kivity
@ 2010-10-11 20:19 ` Steven Rostedt
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2010-10-11 20:19 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm, linux-kernel, linux-trace-users

On Mon, 2010-10-11 at 10:58 +0200, Avi Kivity wrote:
> %0xlx is not a valid printf format.
> 
> Signed-off-by: Avi Kivity <avi@redhat.com>

Applied, thanks!

-- Steve

> ---
>  plugin_kvm.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/plugin_kvm.c b/plugin_kvm.c
> index cdd52c7..724143d 100644
> --- a/plugin_kvm.c
> +++ b/plugin_kvm.c
> @@ -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;
>  }



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-11 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11  8:58 [PATCH] plugin_kvm: fix kvm_exit rip formatting Avi Kivity
2010-10-11 20:19 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox