From 9d9c6dc46e00889c93f565da6d6fe08490414444 Mon Sep 17 00:00:00 2001 From: Yuto Takano Date: Mon, 16 Aug 2021 10:43:45 +0100 Subject: [PATCH] Align the item counts in check_names for ease of reading Signed-off-by: Yuto Takano --- tests/scripts/check_names.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/scripts/check_names.py b/tests/scripts/check_names.py index 113854c28..b12f40644 100755 --- a/tests/scripts/check_names.py +++ b/tests/scripts/check_names.py @@ -258,11 +258,12 @@ class CodeParser(): actual_macros.append(macro) self.log.debug("Found:") - self.log.debug(" {} Total Macros".format(len(all_macros))) - self.log.debug(" {} Non-identifier Macros".format(len(actual_macros))) - self.log.debug(" {} Enum Constants".format(len(enum_consts))) - self.log.debug(" {} Identifiers".format(len(identifiers))) - self.log.debug(" {} Exported Symbols".format(len(symbols))) + # Aligns the counts on the assumption that none exceeds 4 digits + self.log.debug(" {:4} Total Macros".format(len(all_macros))) + self.log.debug(" {:4} Non-identifier Macros".format(len(actual_macros))) + self.log.debug(" {:4} Enum Constants".format(len(enum_consts))) + self.log.debug(" {:4} Identifiers".format(len(identifiers))) + self.log.debug(" {:4} Exported Symbols".format(len(symbols))) return { "macros": actual_macros, "enum_consts": enum_consts,