lkml.org 
[lkml]   [2013]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/3] tracing: use trace_seq_puts()/trace_seq_putc() where possible
From
Date
On Mon, 2013-07-15 at 16:32 +0800, zhangwei(Jovi) wrote:
> diff --git a/kernel/trace/trace_functions_graph.c
> b/kernel/trace/trace_functions_graph.c
> index 8388bc9..3793f90 100644
> --- a/kernel/trace/trace_functions_graph.c
> +++ b/kernel/trace/trace_functions_graph.c
> @@ -446,7 +446,7 @@ print_graph_proc(struct trace_seq *s, pid_t pid)
>
> /* First spaces to align center */
> for (i = 0; i < spaces / 2; i++) {
> - ret = trace_seq_printf(s, " ");
> + ret = trace_seq_putc(s, ' ');
> if (!ret)
> return TRACE_TYPE_PARTIAL_LINE;
> }
> @@ -457,7 +457,7 @@ print_graph_proc(struct trace_seq *s, pid_t pid)
>
> /* Last spaces to align center */
> for (i = 0; i < spaces - (spaces / 2); i++) {
> - ret = trace_seq_printf(s, " ");
> + ret = trace_seq_putc(s, " ");

Oops, s/"/'/g

I'll fix it.

-- Steve

> if (!ret)
> return TRACE_TYPE_PARTIAL_LINE;
> }
> @@ -503,7 +503,7 @@ verif_pid(struct trace_seq *s, pid_t pid, int cpu,
> struct fgraph_data *data)
>
>



\
 
 \ /
  Last update: 2013-07-19 04:01    [W:0.223 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site