From 61bd58a6f6c773cc3057ad08319eaf7f3e9ca3ab Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Fri, 26 Feb 2010 16:31:20 -0500 Subject: 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. --- kernel/printk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/printk.c') 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) printed_len += vscnprintf(printk_buf + printed_len, sizeof(printk_buf) - printed_len, fmt, args); /* if LITMUS^RT tracer is active divert printk() msgs */ - if(trace_override && !trace_recurse) - TRACE("%s", printk_buf + printed_len); + if (trace_override && !trace_recurse) + TRACE("%s", printk_buf); p = printk_buf; -- cgit v1.2.2