aboutsummaryrefslogtreecommitdiff
path: root/external/mambo
diff options
context:
space:
mode:
authorRyan Grimm <grimm@linux.ibm.com>2022-08-05 18:02:23 -0400
committerReza Arbab <arbab@linux.ibm.com>2022-08-23 10:22:44 -0500
commit856b19540297ef596fc5d9c01cbcc19853b8e8be (patch)
treeddd10270e8018f5d24b65ea2ff2df4a2a2d411ad /external/mambo
parent20e245a061ddbe1cfbf22f0b3eed07c4e5d1cd5b (diff)
downloadskiboot-856b19540297ef596fc5d9c01cbcc19853b8e8be.zip
skiboot-856b19540297ef596fc5d9c01cbcc19853b8e8be.tar.gz
skiboot-856b19540297ef596fc5d9c01cbcc19853b8e8be.tar.bz2
mambo: print useful error when mysim mmap fails
My user id didn't have access to disk.img and the code printed the error message: ERROR: pmem: 'mysim mmap' command needs newer mambo mysim mmap has been in Mambo for a while so this patch prints out the error message from catch. Now we get the useful: ERROR: pmem: 'mysim mmap' Error opening file disk.img for mapping Signed-off-by: Ryan Grimm <grimm@linux.ibm.com> Reviewed-by: Dan HorĂ¡k <dan@danny.cz> Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'external/mambo')
-rw-r--r--external/mambo/skiboot.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index 33a892d..6c0eb5a 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -364,8 +364,8 @@ foreach pmem_file $pmem_files { # PMEM_DISK
} else {
set pmem_mode "rw"
}
- if {[catch {mysim memory mmap $pmem_start $pmem_size $pmem_file $pmem_mode}]} {
- puts "ERROR: pmem: 'mysim mmap' command needs newer mambo"
+ if {[catch {mysim memory mmap $pmem_start $pmem_size $pmem_file $pmem_mode} err]} {
+ puts "ERROR: pmem: 'mysim mmap' $err"
exit
}
set pmem_start [pmem_node_add $pmem_root $pmem_start $pmem_size]