]> git.sur5r.net Git - u-boot/commitdiff
buildman: Fix bloat option when 'new' only drops functions
authorTom Rini <trini@konsulko.com>
Mon, 22 May 2017 17:48:52 +0000 (13:48 -0400)
committerSimon Glass <sjg@chromium.org>
Fri, 9 Jun 2017 02:21:59 +0000 (20:21 -0600)
In the case where a new build only decreases sizes and does not increase
any size we still want to report what functions have been dropped when
doing a bloat comparison.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/buildman/builder.py

index b0ea57ebb4a93b940cea61c056c334b36c19f810..acb0810457e4c9a1a2b8344b6f1639f90d09b131 100644 (file)
@@ -847,7 +847,7 @@ class Builder:
         delta.reverse()
 
         args = [add, -remove, grow, -shrink, up, -down, up - down]
-        if max(args) == 0:
+        if max(args) == 0 and min(args) == 0:
             return
         args = [self.ColourNum(x) for x in args]
         indent = ' ' * 15