Skip to content

Commit

Permalink
external/mambo: Check for qtrace_utils.tcl before sourcing it
Browse files Browse the repository at this point in the history
Commit cb835db ('external/mambo: conditionally source qtrace script')
added qtrace_utils.tcl sourcing in skiboot.tcl without a check to see
whether it exists in the current directory. This broke running mambo from
another directory using skiboot.tcl. Patch adds a check.

Fixes: cb835db ('external/mambo: conditionally source qtrace script')
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
Madhavan Srinivasan authored and stewartsmith committed Oct 24, 2018
1 parent 6ea075e commit ae546e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion external/mambo/skiboot.tcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# need to get images path defined early
source $env(LIB_DIR)/ppc/util.tcl
source qtrace_utils.tcl
if { [file exists qtrace_utils.tcl] } then {
source qtrace_utils.tcl
}

#
# Call tclreadline's Loop to move to friendlier
Expand Down

0 comments on commit ae546e0

Please sign in to comment.