Skip to content

Commit

Permalink
tracing: Use TRACE_MAX_PRINT instead of constant
Browse files Browse the repository at this point in the history
TRACE_MAX_PRINT macro is defined, but is not used.

Link: http://lkml.kernel.org/r/513D8421.4070404@huawei.com

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
zhangwei(Jovi) authored and Steven Rostedt committed Mar 15, 2013
1 parent 687c878 commit bd6df18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -5978,8 +5978,8 @@ void
trace_printk_seq(struct trace_seq *s)
{
/* Probably should print a warning here. */
if (s->len >= 1000)
s->len = 1000;
if (s->len >= TRACE_MAX_PRINT)
s->len = TRACE_MAX_PRINT;

/* should be zero ended, but we are paranoid. */
s->buffer[s->len] = 0;
Expand Down

0 comments on commit bd6df18

Please sign in to comment.