]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: format strings should not have brackets in macros
authorAndy Whitcroft <apw@canonical.com>
Tue, 22 Sep 2009 00:04:38 +0000 (17:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:48 +0000 (07:17 -0700)
commitc2e94466aa4901274b5c2a0bc4e986e2b5e0e180
tree0d5cf1171809bf012054c7a028beb93450a664fa
parent4661db8f84a2babd9827f6cdad177ead9a792048
checkpatch: format strings should not have brackets in macros

We should not recommend braces for the following:

    #define pr_fmt(fmt)    "%s: " fmt, __func__

allow things with double quotes round them to avoid this check.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl