svn commit: trunk/busybox/scripts

landley at busybox.net landley at busybox.net
Mon May 8 18:30:35 UTC 2006


Author: landley
Date: 2006-05-08 11:30:33 -0700 (Mon, 08 May 2006)
New Revision: 15036

Log:
Tweak suggested by Matt Mackall when I submitted the bloat-o-meter changes
back to linux-kernel...


Modified:
   trunk/busybox/scripts/bloat-o-meter


Changeset:
Modified: trunk/busybox/scripts/bloat-o-meter
===================================================================
--- trunk/busybox/scripts/bloat-o-meter	2006-05-08 18:18:02 UTC (rev 15035)
+++ trunk/busybox/scripts/bloat-o-meter	2006-05-08 18:30:33 UTC (rev 15036)
@@ -18,9 +18,8 @@
     for l in os.popen("nm --size-sort " + file).readlines():
         size, type, name = l[:-1].split()
         if type in "tTdDbB":
-            if name.find(".") != -1: name = "static." + name.split(".")[0]
-            if name in sym: sym[name] += int(size, 16)
-            else :sym[name] = int(size, 16)
+            if "." in name: name = "static." + name.split(".")[0]
+            sym[name] = sym.get(name, 0) + int(size, 16)
     return sym
 
 old = getsizes(sys.argv[1])




More information about the busybox-cvs mailing list