From faabde13a17a6dd5ae9cee8977da4fa151ddab47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tero=20J=C3=A4=C3=A4sk=C3=B6?= Date: Tue, 13 Feb 2018 15:15:31 +0200 Subject: [PATCH] tools: build: fix handing of "--stats-depth" The introduction of pretty-bar had broken the handling of "mbed compile"'s "--stats-depth" argument. No matter what one gave as parameter to it, the result output is just using the default 2. Fix the logic in build_api. --- tools/build_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build_api.py b/tools/build_api.py index 66deeb386a..c769dea202 100644 --- a/tools/build_api.py +++ b/tools/build_api.py @@ -528,7 +528,7 @@ def build_project(src_paths, build_path, target, toolchain_name, memap_instance = getattr(toolchain, 'memap_instance', None) memap_table = '' if memap_instance: - real_stats_depth = stats_depth if stats_depth is None else 2 + real_stats_depth = stats_depth if stats_depth is not None else 2 memap_table = memap_instance.generate_output('table', real_stats_depth) if not silent: if not stats_depth: