From c9603bc57d572b6967f2e847cbd77e0d793f1d35 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 25 Apr 2012 11:03:55 +1000 Subject: [PATCH] vsprintf-correctly-handle-width-when-flag-used-in-%p-format-checkpatch-fixes ERROR: "(foo*)" should be "(foo *)" #20: FILE: lib/vsprintf.c:869: + int default_width = 2 * sizeof(void*) + (spec.flags & SPECIAL ? 2 : 0); total: 1 errors, 0 warnings, 32 lines checked ./patches/vsprintf-correctly-handle-width-when-flag-used-in-%p-format.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Grant Likely Signed-off-by: Andrew Morton --- lib/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 1043827c3583..4e4f3b9e022a 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -866,7 +866,7 @@ static noinline_for_stack char *pointer(const char *fmt, char *buf, char *end, void *ptr, struct printf_spec spec) { - int default_width = 2 * sizeof(void*) + (spec.flags & SPECIAL ? 2 : 0); + int default_width = 2 * sizeof(void *) + (spec.flags & SPECIAL ? 2 : 0); if (!ptr && *fmt != 'K') { /* -- 2.39.5