From: Allain Legacy Date: Wed, 1 Mar 2017 17:44:19 +0000 (-0500) Subject: devtools: ignore warning on long log string X-Git-Tag: spdx-start~4443 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cf75514c8e2eac82261be0dc0a5e82e9f2653ca8;p=dpdk.git devtools: ignore warning on long log string The checkpatch.pl tool is flagging warnings on long debug log strings. Since splitting these strings makes it difficult to search for logs it is preferred to allow these as exceptions to the long line rule. The addition of the LONG_LINE_STRINGS to the list of exceptions will allow lines that end with a string to exceed the maximum line length, but lines that end with variables or other constructs will still be flagged as errors. Also, lines that make use of PRIx64 with string concatenation will still be flagged if the beginning of the last string fragment begins after the 80 character threshold. Signed-off-by: Allain Legacy --- diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 78e155e605..a56c41a301 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -44,7 +44,8 @@ options="$options --show-types" options="$options --ignore=LINUX_VERSION_CODE,FILE_PATH_CHANGES,\ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,\ PREFER_KERNEL_TYPES,BIT_MACRO,CONST_STRUCT,\ -SPLIT_STRING,LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\ +SPLIT_STRING,LONG_LINE_STRING,\ +LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\ NEW_TYPEDEFS,COMPARISON_TO_NULL" print_usage () {