public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix checkstack.pl arch detection
@ 2008-05-02 17:20 Eric Sandeen
  2008-05-02 22:37 ` Jörn Engel
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Sandeen @ 2008-05-02 17:20 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Jörn Engel, Andrew Morton

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>
---

Index: linux-2.6.25/scripts/checkstack.pl
===================================================================
--- linux-2.6.25.orig/scripts/checkstack.pl	2008-05-02 12:17:59.000000000 -0500
+++ linux-2.6.25/scripts/checkstack.pl	2008-05-02 12:18:15.426407528 -0500
@@ -32,6 +32,7 @@ my (@stack, $re, $x, $xs);
 	my $arch = shift;
 	if ($arch eq "") {
 		$arch = `uname -m`;
+		chomp($arch);
 	}
 
 	$x	= "[0-9a-f]";	# hex character
@@ -85,7 +86,7 @@ my (@stack, $re, $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
 	}
 }


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-05-03  2:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02 17:20 [PATCH] fix checkstack.pl arch detection Eric Sandeen
2008-05-02 22:37 ` Jörn Engel
2008-05-02 23:44   ` Andrew Morton
2008-05-03  2:20     ` Eric Sandeen
2008-05-03  2:31       ` Andrew Morton
2008-05-03  2:40         ` Eric Sandeen
2008-05-03  2:51           ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox