Apply strip_brackets to header in sprint_varx
Change-Id: I9c552e6a5c21c19121b4e7812f4ee43dd6b3ae70
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/gen_print.py b/lib/gen_print.py
index 945a941..92dec7b 100755
--- a/lib/gen_print.py
+++ b/lib/gen_print.py
@@ -1241,6 +1241,8 @@
loc_var_name = re.sub(r".*\[", "[", var_name)
else:
loc_var_name = var_name
+ if (fmt & strip_brackets()):
+ loc_var_name = re.sub(r"[\[\]]", "", loc_var_name)
format_string = "%" + str(indent) + "s%s\n"
buffer = format_string % ("", loc_var_name + ":")
if fmt & show_type():