diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/markup_oops.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/markup_oops.pl b/scripts/markup_oops.pl index a7e8e019e03d..90e1d9aa35b5 100644 --- a/scripts/markup_oops.pl +++ b/scripts/markup_oops.pl | |||
@@ -23,10 +23,10 @@ my $modulefile = ""; | |||
23 | # Get options | 23 | # Get options |
24 | Getopt::Long::GetOptions( | 24 | Getopt::Long::GetOptions( |
25 | 'cross-compile|c=s' => \$cross_compile, | 25 | 'cross-compile|c=s' => \$cross_compile, |
26 | 'module|m=s' => \$modulefile, | 26 | 'module|m=s' => \$modulefile, |
27 | 'help|h' => \&usage, | 27 | 'help|h' => \&usage, |
28 | ); | 28 | ) || usage (); |
29 | my $vmlinux_name = $ARGV[$#ARGV]; | 29 | my $vmlinux_name = $ARGV[0]; |
30 | if (!defined($vmlinux_name)) { | 30 | if (!defined($vmlinux_name)) { |
31 | my $kerver = `uname -r`; | 31 | my $kerver = `uname -r`; |
32 | chomp($kerver); | 32 | chomp($kerver); |
@@ -193,7 +193,7 @@ if ($target eq "0") { | |||
193 | # if it's a module, we need to find the .ko file and calculate a load offset | 193 | # if it's a module, we need to find the .ko file and calculate a load offset |
194 | if ($module ne "") { | 194 | if ($module ne "") { |
195 | if ($modulefile eq "") { | 195 | if ($modulefile eq "") { |
196 | my $modulefile = `modinfo $module | grep '^filename:' | awk '{ print \$2 }'`; | 196 | $modulefile = `modinfo -F filename $module`; |
197 | chomp($modulefile); | 197 | chomp($modulefile); |
198 | } | 198 | } |
199 | $filename = $modulefile; | 199 | $filename = $modulefile; |
@@ -362,7 +362,7 @@ Usage: | |||
362 | 362 | ||
363 | OPTION: | 363 | OPTION: |
364 | -c, --cross-compile CROSS_COMPILE Specify the prefix used for toolchain. | 364 | -c, --cross-compile CROSS_COMPILE Specify the prefix used for toolchain. |
365 | -m, --module MODULE_DIRNAME Specify the module directory name. | 365 | -m, --module MODULE_DIRNAME Specify the module filename. |
366 | -h, --help Help. | 366 | -h, --help Help. |
367 | EOT | 367 | EOT |
368 | exit; | 368 | exit; |