summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2025-01-07 01:34:13 -0500
committerChristian Hopps <chopps@labn.net>2025-01-07 01:34:13 -0500
commitbdfb6a3db7f00859a7cfe3433dc01a497c5d58b2 (patch)
treea4de4b9a8faf4f8dfcada32a761ca1a36dcc6e4d /tools
parent9aa2b0487445c7127cac215b9b2dcb32a5c7692e (diff)
tools: we specifically added %Lu to our sprintfrr so allow it
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkpatch.pl15
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl
index 2c773f7fbc..9c5eb323be 100755
--- a/tools/checkpatch.pl
+++ b/tools/checkpatch.pl
@@ -6285,13 +6285,14 @@ sub process {
while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) {
my $string = substr($rawline, $-[1], $+[1] - $-[1]);
$string =~ s/%%/__/g;
- # check for %L
- if ($show_L && $string =~ /%[\*\d\.\$]*L([diouxX])/) {
- WARN("PRINTF_L",
- "\%L$1 is non-standard C, use %ll$1\n" . $herecurr);
- $show_L = 0;
- }
- # check for %Z
+ # check for %L
+ # OK in FRR
+ # if ($show_L && $string =~ /%[\*\d\.\$]*L([diouxX])/) {
+ # WARN("PRINTF_L",
+ # "\%L$1 is non-standard C, use %ll$1\n" . $herecurr);
+ # $show_L = 0;
+ # }
+ # check for %Z
if ($show_Z && $string =~ /%[\*\d\.\$]*Z([diouxX])/) {
WARN("PRINTF_Z",
"%Z$1 is non-standard C, use %z$1\n" . $herecurr);