OSDN Git Service

streamline_config.pl: show the full Kconfig name
authorŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 25 Nov 2021 16:20:54 +0000 (17:20 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 2 Dec 2021 08:02:36 +0000 (17:02 +0900)
Show the very same file name that was passed to open()
in case the operation failed.

Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
scripts/kconfig/streamline_config.pl

index 1a5fea0..3387ad7 100755 (executable)
@@ -170,7 +170,7 @@ sub read_kconfig {
        $source =~ s/\$\($env\)/$ENV{$env}/;
     }
 
-    open(my $kinfile, '<', $source) || die "Can't open $kconfig";
+    open(my $kinfile, '<', $source) || die "Can't open $source";
     while (<$kinfile>) {
        chomp;