diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 05431696b10c..eb228b9de170 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -1975,7 +1975,21 @@ void trace_printk_init_buffers(void) | |||
1975 | if (alloc_percpu_trace_buffer()) | 1975 | if (alloc_percpu_trace_buffer()) |
1976 | return; | 1976 | return; |
1977 | 1977 | ||
1978 | pr_info("ftrace: Allocated trace_printk buffers\n"); | 1978 | /* trace_printk() is for debug use only. Don't use it in production. */ |
1979 | |||
1980 | pr_warning("\n**********************************************************\n"); | ||
1981 | pr_warning("** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **\n"); | ||
1982 | pr_warning("** **\n"); | ||
1983 | pr_warning("** trace_printk() being used. Allocating extra memory. **\n"); | ||
1984 | pr_warning("** **\n"); | ||
1985 | pr_warning("** This means that this is a DEBUG kernel and it is **\n"); | ||
1986 | pr_warning("** unsafe for produciton use. **\n"); | ||
1987 | pr_warning("** **\n"); | ||
1988 | pr_warning("** If you see this message and you are not debugging **\n"); | ||
1989 | pr_warning("** the kernel, report this immediately to your vendor! **\n"); | ||
1990 | pr_warning("** **\n"); | ||
1991 | pr_warning("** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **\n"); | ||
1992 | pr_warning("**********************************************************\n"); | ||
1979 | 1993 | ||
1980 | /* Expand the buffers to set size */ | 1994 | /* Expand the buffers to set size */ |
1981 | tracing_update_buffers(); | 1995 | tracing_update_buffers(); |