]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools: we specifically added %Lu to our sprintfrr so allow it 17772/head
authorChristian Hopps <chopps@labn.net>
Tue, 7 Jan 2025 06:34:13 +0000 (01:34 -0500)
committerChristian Hopps <chopps@labn.net>
Tue, 7 Jan 2025 06:34:13 +0000 (01:34 -0500)
Signed-off-by: Christian Hopps <chopps@labn.net>
tools/checkpatch.pl

index 2c773f7fbcb393511dbb0fdac437e501da0710ec..9c5eb323be407f52dc64c22d52aa67c72558fb58 100755 (executable)
@@ -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);