Correction to stack_frame_ix value in sprint_error_report.
Change-Id: Ice22ddd54f3bd85122343db9ebc9c2ca407bd26f
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/gen_print.py b/lib/gen_print.py
index ceb4103..7493ffd 100755
--- a/lib/gen_print.py
+++ b/lib/gen_print.py
@@ -1153,7 +1153,7 @@
# itself and this function in the call stack. This is not helpful to a
# debugger and is therefore clutter. We will adjust the stack_frame_ix to
# hide that information.
- stack_frame_ix = 2
+ stack_frame_ix = 1
caller_func_name = sprint_func_name(2)
if caller_func_name.endswith("print_error_report"):
stack_frame_ix += 1