aboutsummaryrefslogtreecommitdiff
path: root/gdb/riscv-tdep.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2018-03-06 13:05:34 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2018-03-06 14:24:50 +0000
commitfb2946557216c813310ed062a06b55d5dc466bb0 (patch)
tree9619a5ac06dad5e3580f7f82fdde7e733c7659a7 /gdb/riscv-tdep.c
parentcab5bb9d1f9fcf674d5b4c82aba7622597b1fd35 (diff)
downloadgdb-fb2946557216c813310ed062a06b55d5dc466bb0.zip
gdb-fb2946557216c813310ed062a06b55d5dc466bb0.tar.gz
gdb-fb2946557216c813310ed062a06b55d5dc466bb0.tar.bz2
gdb/riscv: Additional print format string fixes
Another riscv format string fix. gdb/ChangeLog: * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz where appropriate.
Diffstat (limited to 'gdb/riscv-tdep.c')
-rw-r--r--gdb/riscv-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c
index 5c04a74..797ca72 100644
--- a/gdb/riscv-tdep.c
+++ b/gdb/riscv-tdep.c
@@ -2121,8 +2121,8 @@ riscv_push_dummy_call (struct gdbarch *gdbarch,
call_info.memory.arg_offset);
fprintf_unfiltered (gdb_stdlog, "Stack required (for refs): 0x%x\n",
call_info.memory.ref_offset);
- fprintf_unfiltered (gdb_stdlog, " Stack allocated: 0x%lx\n",
- (osp - sp));
+ fprintf_unfiltered (gdb_stdlog, " Stack allocated: %s\n",
+ core_addr_to_string_nz (osp - sp));
}
}