projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
687c878
)
tracing: Use TRACE_MAX_PRINT instead of constant
author
zhangwei(Jovi)
<jovi.zhangwei@huawei.com>
Mon, 11 Mar 2013 07:13:37 +0000
(15:13 +0800)
committer
Steven Rostedt
<rostedt@goodmis.org>
Fri, 15 Mar 2013 17:22:06 +0000
(13:22 -0400)
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>
kernel/trace/trace.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/trace.c
b/kernel/trace/trace.c
index bba1ba958ee8dfc235e7015c6833dc5f26969485..8486256747528cc4d7404890ea9b156957c49f51 100644
(file)
--- 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;