aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions_graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
-rw-r--r--kernel/trace/trace_functions_graph.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
index 4c388607ed67..6004ccac2dd7 100644
--- a/kernel/trace/trace_functions_graph.c
+++ b/kernel/trace/trace_functions_graph.c
@@ -190,15 +190,15 @@ print_graph_cpu(struct trace_seq *s, int cpu)
190static enum print_line_t 190static enum print_line_t
191print_graph_proc(struct trace_seq *s, pid_t pid) 191print_graph_proc(struct trace_seq *s, pid_t pid)
192{ 192{
193 int i; 193 char comm[TASK_COMM_LEN];
194 int ret;
195 int len;
196 char comm[8];
197 int spaces = 0;
198 /* sign + log10(MAX_INT) + '\0' */ 194 /* sign + log10(MAX_INT) + '\0' */
199 char pid_str[11]; 195 char pid_str[11];
196 int spaces = 0;
197 int ret;
198 int len;
199 int i;
200 200
201 strncpy(comm, trace_find_cmdline(pid), 7); 201 trace_find_cmdline(pid, comm);
202 comm[7] = '\0'; 202 comm[7] = '\0';
203 sprintf(pid_str, "%d", pid); 203 sprintf(pid_str, "%d", pid);
204 204