]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
leaking_addresses: Fix calls to dprint
authorTobin C. Harding <tobin@kernel.org>
Mon, 22 Oct 2018 23:51:08 +0000 (10:51 +1100)
committerTobin C. Harding <tobin@kernel.org>
Wed, 6 Mar 2019 21:53:18 +0000 (08:53 +1100)
Currently calls to function dprint() are non uniform and at times
incorrect.

Use uniform _correct_ call to function dprint().

Signed-off-by: Tobin C. Harding <tobin@kernel.org>
scripts/leaking_addresses.pl

index 6a897788f5a7ecd3eb699ebd6aec21ee1125aecd..214c12be8c8640dc160b51679b85a007785f827e 100755 (executable)
@@ -231,7 +231,7 @@ sub get_kernel_config_option
                my $tmp_file = "/tmp/tmpkconf";
 
                if (system("gunzip < /proc/config.gz > $tmp_file")) {
-                       dprint "$0: system(gunzip < /proc/config.gz) failed\n";
+                       dprint("system(gunzip < /proc/config.gz) failed\n");
                        return "";
                } else {
                        @config_files = ($tmp_file);
@@ -243,7 +243,7 @@ sub get_kernel_config_option
        }
 
        foreach my $file (@config_files) {
-               dprint("parsing config file: %s\n", $file);
+               dprint("parsing config file: $file\n");
                $value = option_from_file($option, $file);
                if ($value ne "") {
                        last;
@@ -502,7 +502,7 @@ sub walk
                                next;
                        }
 
-                       dprint "parsing: $path\n";
+                       dprint("parsing: $path\n");
                        timed_parse_file($path);
                }
        }