diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-02-07 18:37:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-02-07 18:37:25 +0000 |
commit | 02a9dc653b906d8b65c051c816091e59b6226739 (patch) | |
tree | 8df6bf720a0ad52ca7085d56cc9782ab5d9d6d10 /gdb/remote-sim.c | |
parent | 7d7c0c0ddc443391866f9e19eb422ff24ec78b80 (diff) | |
download | gdb-02a9dc653b906d8b65c051c816091e59b6226739.tar.gz |
Fix printf fmt of long in remote-sim.c.
mn10300-elf now buildable.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 268f5f76f77..1976db90676 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -129,7 +129,9 @@ dump_mem (char *buf, int len) long l[2]; memcpy (l, buf, len); printf_filtered ("\t0x%lx", l[0]); - printf_filtered (len == 8 ? " 0x%x\n" : "\n", l[1]); + if (len == 8) + printf_filtered (" 0x%lx", l[1]); + printf_filtered ("\n"); } else { |