projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tracing: Fix trace_printk() to print when not using bprintk()
[firefly-linux-kernel-4.4.55.git]
/
kernel
/
trace
/
trace_printk.c
diff --git
a/kernel/trace/trace_printk.c
b/kernel/trace/trace_printk.c
index 060df67dbdd1d038dba8ec35909890f3e892b6d7..f96f0383f6c6bfe40cba9226b97f8885723a4d9d 100644
(file)
--- a/
kernel/trace/trace_printk.c
+++ b/
kernel/trace/trace_printk.c
@@
-296,6
+296,9
@@
static int t_show(struct seq_file *m, void *v)
const char *str = *fmt;
int i;
+ if (!*fmt)
+ return 0;
+
seq_printf(m, "0x%lx : \"", *(unsigned long *)fmt);
/*