File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/testing/selftests/bpf Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ static int append_filter_file(const char *path)
660
660
f = fopen (path , "r" );
661
661
if (!f ) {
662
662
err = - errno ;
663
- fprintf (stderr , "Failed to open filters in '%s': %s\n" , path , strerror (err ));
663
+ fprintf (stderr , "Failed to open filters in '%s': %s\n" , path , strerror (- err ));
664
664
return err ;
665
665
}
666
666
@@ -1422,7 +1422,7 @@ static int append_var_preset_file(const char *filename)
1422
1422
f = fopen (filename , "rt" );
1423
1423
if (!f ) {
1424
1424
err = - errno ;
1425
- fprintf (stderr , "Failed to open presets in '%s': %s\n" , filename , strerror (err ));
1425
+ fprintf (stderr , "Failed to open presets in '%s': %s\n" , filename , strerror (- err ));
1426
1426
return - EINVAL ;
1427
1427
}
1428
1428
You can’t perform that action at this time.
0 commit comments