diff options
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
-rw-r--r-- | kernel/trace/trace_functions_graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index b1342c5d37cf..c2eef6709ad6 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c | |||
@@ -608,7 +608,7 @@ trace_print_graph_duration(unsigned long long duration, struct trace_seq *s) | |||
608 | int ret, len; | 608 | int ret, len; |
609 | int i; | 609 | int i; |
610 | 610 | ||
611 | sprintf(msecs_str, "%lu", (unsigned long) duration); | 611 | snprintf(msecs_str, sizeof(msecs_str), "%lu", (unsigned long) duration); |
612 | 612 | ||
613 | /* Print msecs */ | 613 | /* Print msecs */ |
614 | ret = trace_seq_printf(s, "%s", msecs_str); | 614 | ret = trace_seq_printf(s, "%s", msecs_str); |