From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> The WARN_ONCE() logic in trace_seq is based off of the WARN_ONCE() logic in the Linux kernel, where the message does not require to end with a new line. But the implementation is different than the kernel, and it lacks adding a new line when it writes the output. Add the new line to make it match what happens in the Linux kernel. Link: https://lore.kernel.org/linux-trace-devel/20210514122825.162203-1-y.karadz@xxxxxxxxx/ Fixes: 3b760f95 ("tools include: Move perf's bug.h to a generic place") Reported-by: "Yordan Karadzhov (VMware)" <y.karadz@xxxxxxxxx> Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx> --- include/asm/bug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm/bug.h b/include/asm/bug.h index 550223f..de8f8fe 100644 --- a/include/asm/bug.h +++ b/include/asm/bug.h @@ -5,7 +5,7 @@ #include <linux/compiler.h> #include <stdio.h> -#define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0) +#define __WARN_printf(arg...) do { fprintf(stderr, arg); fprintf(stderr, "\n");} while (0) #define WARN(condition, format...) ({ \ int __ret_warn_on = !!(condition); \ -- 2.29.2