Skip to content

Commit

Permalink
markup_oops: use modinfo to avoid confusion with underscored module n…
Browse files Browse the repository at this point in the history
…ames

When EIP is at a module having an underscore in its name, the current code
fails to find it because the module filenames has '-' instead of '_'.  Use
modinfo for a better path finding.

Signed-off-by: Ozan Çaglayan <[email protected]>
Acked-by: WANG Cong <[email protected]>
Cc: Arjan van de Ven <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Ozan Çaglayan authored and sravnborg committed Sep 20, 2009
1 parent f9d490a commit 82fa395
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/markup_oops.pl
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,7 @@ sub process_x86_regs

# if it's a module, we need to find the .ko file and calculate a load offset
if ($module ne "") {
my $dir = dirname($filename);
$dir = $dir . "/";
my $mod = $module . ".ko";
my $modulefile = `find $dir -name $mod | head -1`;
my $modulefile = `modinfo $module | grep '^filename:' | awk '{ print \$2 }'`;
chomp($modulefile);
$filename = $modulefile;
if ($filename eq "") {
Expand Down

0 comments on commit 82fa395

Please sign in to comment.