aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/printk.c
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-02-26 16:31:20 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-02-26 16:31:20 -0500
commit61bd58a6f6c773cc3057ad08319eaf7f3e9ca3ab (patch)
tree921a6a3207faef75c96cb786f4766eeb8eda1706 /kernel/printk.c
parent239d6d0bd7121cac4e6c4437a9f3970043b3fe8f (diff)
Bugfix: re-enable capturing of printk() messages in TRACE() logs
(printk_buf + printed_len) always points to a '\0' character and nothing gets logged. Revert to the 2008 version.
Diffstat (limited to 'kernel/printk.c')
-rw-r--r--kernel/printk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index 48bc6c813d88..6712a252b306 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -721,8 +721,8 @@ asmlinkage int vprintk(const char *fmt, va_list args)
721 printed_len += vscnprintf(printk_buf + printed_len, 721 printed_len += vscnprintf(printk_buf + printed_len,
722 sizeof(printk_buf) - printed_len, fmt, args); 722 sizeof(printk_buf) - printed_len, fmt, args);
723 /* if LITMUS^RT tracer is active divert printk() msgs */ 723 /* if LITMUS^RT tracer is active divert printk() msgs */
724 if(trace_override && !trace_recurse) 724 if (trace_override && !trace_recurse)
725 TRACE("%s", printk_buf + printed_len); 725 TRACE("%s", printk_buf);
726 726
727 727
728 p = printk_buf; 728 p = printk_buf;