From b0ed5c97a09e2909efa0cbabb31f491b3393475e Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 3 May 2012 15:44:18 +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