tools: we specifically added %Lu to our sprintfrr so allow it

Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
Christian Hopps 2025-01-07 01:34:13 -05:00
parent 9aa2b04874
commit bdfb6a3db7

View file

@ -6286,11 +6286,12 @@ sub process {
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;
}
# 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",