mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
fix checkstack.pl arch detection
uname -m was leaving a newline in $arch, and not passing the tests. Also, printing the unknown arch on failure is probably helpful. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
585e93ae83
commit
abddaec56e
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@ my (@stack, $re, $dre, $x, $xs);
|
|||
my $arch = shift;
|
||||
if ($arch eq "") {
|
||||
$arch = `uname -m`;
|
||||
chomp($arch);
|
||||
}
|
||||
|
||||
$x = "[0-9a-f]"; # hex character
|
||||
|
@ -91,7 +92,7 @@ my (@stack, $re, $dre, $x, $xs);
|
|||
# 0: 00 e8 38 01 LINK 0x4e0;
|
||||
$re = qr/.*[[:space:]]LINK[[:space:]]*(0x$x{1,8})/o;
|
||||
} else {
|
||||
print("wrong or unknown architecture\n");
|
||||
print("wrong or unknown architecture \"$arch\"\n");
|
||||
exit
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue