File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6782,19 +6782,19 @@ sub process {
6782
6782
}
6783
6783
if ($bad_specifier ne " " ) {
6784
6784
my $stat_real = get_stat_real($linenr , $lc );
6785
+ my $msg_level = \&WARN;
6785
6786
my $ext_type = " Invalid" ;
6786
6787
my $use = " " ;
6787
- if ($bad_specifier =~ / pA/ ) {
6788
- ERROR(" VSPRINTF_RUST" ,
6789
- " '\% pA' is only intended to be used from Rust code\n " . " $here \n $stat_real \n " );
6790
- }
6791
6788
if ($bad_specifier =~ / p[Ff]/ ) {
6792
6789
$use = " - use %pS instead" ;
6793
6790
$use =~ s / pS/ ps/ if ($bad_specifier =~ / pf/ );
6791
+ } elsif ($bad_specifier =~ / pA/ ) {
6792
+ $use = " - '%pA ' is only intended to be used from Rust code" ;
6793
+ $msg_level = \&ERROR;
6794
6794
}
6795
6795
6796
- WARN (" VSPRINTF_POINTER_EXTENSION" ,
6797
- " $ext_type vsprintf pointer extension '$bad_specifier '$use \n " . " $here \n $stat_real \n " );
6796
+ &{ $msg_level } (" VSPRINTF_POINTER_EXTENSION" ,
6797
+ " $ext_type vsprintf pointer extension '$bad_specifier '$use \n " . " $here \n $stat_real \n " );
6798
6798
}
6799
6799
}
6800
6800
}
You can’t perform that action at this time.
0 commit comments