From 9c408c053312b32f213fba06c0c6fee4d588200f Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 12 Feb 2015 23:18:24 +0300 Subject: [PATCH] kernel_printf: allow '\b' if it's the first character of the format string Those are normally intentional. If '\b' is not the first character then normally it is a typo and '\n' was intended. Signed-off-by: Dan Carpenter --- check_kernel_printf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check_kernel_printf.c b/check_kernel_printf.c index 9147a103..49411377 100644 --- a/check_kernel_printf.c +++ b/check_kernel_printf.c @@ -699,6 +699,10 @@ check_format_string(const char *fmt, const char *caller) case 0x80 ... 0xff: sm_msg("warn: format string contains non-ascii character \\x%02x", c); break; + case 0x08: + if (f == fmt) + break; + /* fall through */ default: sm_msg("warn: format string contains unusual character \\x%02x", c); break; -- 2.11.4.GIT