Commit abddaec56ebb7911bbf0578a4636a74bd7376d92
Committed by
Linus Torvalds
1 parent
585e93ae83
Exists in
master
and in
20 other branches
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
scripts/checkstack.pl
... | ... | @@ -36,6 +36,7 @@ |
36 | 36 | my $arch = shift; |
37 | 37 | if ($arch eq "") { |
38 | 38 | $arch = `uname -m`; |
39 | + chomp($arch); | |
39 | 40 | } |
40 | 41 | |
41 | 42 | $x = "[0-9a-f]"; # hex character |
... | ... | @@ -91,7 +92,7 @@ |
91 | 92 | # 0: 00 e8 38 01 LINK 0x4e0; |
92 | 93 | $re = qr/.*[[:space:]]LINK[[:space:]]*(0x$x{1,8})/o; |
93 | 94 | } else { |
94 | - print("wrong or unknown architecture\n"); | |
95 | + print("wrong or unknown architecture \"$arch\"\n"); | |
95 | 96 | exit |
96 | 97 | } |
97 | 98 | } |