From: Tom Rini Date: Mon, 22 May 2017 17:48:52 +0000 (-0400) Subject: buildman: Fix bloat option when 'new' only drops functions X-Git-Tag: v2017.07-rc2~54^2~39 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d5686a61d64a7c7424d6d4c93ac60cf5e324f3ad;p=u-boot buildman: Fix bloat option when 'new' only drops functions 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 Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index b0ea57ebb4..acb0810457 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -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