TRACE_MAX_PRINT macro is defined at there, but not used.

Signed-off-by: zhangwei(Jovi) <[email protected]>
---
 kernel/trace/trace.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 11cd56b..090eddb 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -5080,8 +5080,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;
-- 
1.7.9.7


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to