diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 49249c28690dbb21b6914e2907b16af56e1094c9..748f6401edf657bb9d09e5d610dbd5ab7f508939 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -830,6 +830,8 @@ int register_tracer(struct tracer *type) current_trace = saved_tracer; if (ret) { printk(KERN_CONT "FAILED!\n"); + /* Add the warning after printing 'FAILED' */ + WARN_ON(1); goto out; } /* Only reset on passing, to avoid touching corrupted buffers */