X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fcheckstack.pl;h=ac74f8629ceacdae62fa34c108fe0d898cb8be4b;hb=2e465268df4cbf81450eda3d913213553619d8c7;hp=84f5fb7f1cecc2e5b99902b5734e4d30a1afeebe;hpb=986c34b495810b38f365bb71665b77de60f15b2c;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index 84f5fb7..ac74f86 100755 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl @@ -139,15 +139,11 @@ $total_size = 0; while (my $line = ) { if ($line =~ m/$funcre/) { $func = $1; - next if $line !~ m/^($xs*)/; + next if $line !~ m/^($x*)/; if ($total_size > $min_stack) { push @stack, "$intro$total_size\n"; } - - $addr = $1; - $addr =~ s/ /0/g; - $addr = "0x$addr"; - + $addr = "0x$1"; $intro = "$addr $func [$file]:"; my $padlen = 56 - length($intro); while ($padlen > 0) {