ChangeSet 1.2231.1.139, 2005/03/28 19:55:10-08:00, [EMAIL PROTECTED]
[PATCH] checkstack: fix sort misbehavior for long function names
Fix sort behavior when long names are encountered. The previour regular
expression depended on a tab to find the size in a string. For long
names,
this tab no longer exists, so it is smarter to check for a colon
instead.
For the kernel, this change shouldn't make a difference. But people
started using the same script for c++ code in other projects.
Signed-off-by: J�rn Engel <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
checkstack.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/scripts/checkstack.pl b/scripts/checkstack.pl
--- a/scripts/checkstack.pl 2005-03-28 21:37:06 -08:00
+++ b/scripts/checkstack.pl 2005-03-28 21:37:06 -08:00
@@ -79,8 +79,8 @@
sub bysize($) {
my ($asize, $bsize);
- ($asize = $a) =~ s/.* +(.*)$/$1/;
- ($bsize = $b) =~ s/.* +(.*)$/$1/;
+ ($asize = $a) =~ s/.*: *(.*)$/$1/;
+ ($bsize = $b) =~ s/.*: *(.*)$/$1/;
$bsize <=> $asize
}
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html