summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorzhangwei(Jovi) <jovi.zhangwei@huawei.com>2013-03-11 15:13:37 +0800
committerSteven Rostedt <rostedt@goodmis.org>2013-03-15 13:22:06 -0400
commitbd6df18716fa45bc4aa9587aca033de909e5382b (patch)
tree843a8da1a65e05067621eef60bf87cb50b1e5a35 /kernel/trace
parent687c878afb526a0c3117dbc408ca76ad80d689f7 (diff)
downloadop-kernel-dev-bd6df18716fa45bc4aa9587aca033de909e5382b.zip
op-kernel-dev-bd6df18716fa45bc4aa9587aca033de909e5382b.tar.gz
tracing: Use TRACE_MAX_PRINT instead of constant
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>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index bba1ba9..8486256 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -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;
OpenPOWER on IntegriCloud