From bdfb6a3db7f00859a7cfe3433dc01a497c5d58b2 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Tue, 7 Jan 2025 01:34:13 -0500 Subject: [PATCH] tools: we specifically added %Lu to our sprintfrr so allow it Signed-off-by: Christian Hopps --- tools/checkpatch.pl | 15 ++++++++------- 1 file 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);