Powered by Linux
[PATCH 3/3] check_kernel_printf.c: handle new definition of KERN_CONT — Semantic Matching Tool

[PATCH 3/3] check_kernel_printf.c: handle new definition of KERN_CONT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Rasmus Villemoes <rv@xxxxxxxxxxxxxxxxxx>
---
 check_kernel_printf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/check_kernel_printf.c b/check_kernel_printf.c
index 57e6ffb..f10d10d 100644
--- a/check_kernel_printf.c
+++ b/check_kernel_printf.c
@@ -812,7 +812,8 @@ check_format_string(const char *fmt, const char *caller)
 			 * this.
 			 */
 			if (!(('0' <= f[1] && f[1] <= '7') ||
-			      f[1] == 'd' ||
+			      f[1] == 'd' || /* KERN_DEFAULT */
+			      f[1] == 'c' || /* KERN_CONT */
 			      (f[1] == '%' && f[2] == 'c')))
 				sm_msg("warn: invalid KERN_* level: KERN_SOH_ASCII followed by '\\x%02x'", (unsigned char)f[1]);
 			break;
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe smatch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux