Fix printf fmt of long in remote-sim.c.

mn10300-elf now buildable.
This commit is contained in:
Andrew Cagney
2001-02-07 18:37:25 +00:00
parent 153f9905cb
commit a6da1910ac
3 changed files with 9 additions and 2 deletions

View File

@@ -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
{