From 6e08f55368b006fd0d70be0906a728f7dd2f448a Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sat, 1 Mar 2008 21:03:35 +0100 Subject: memory_display() used to show the ascii output on the last line not exactly under the other lines. fix it. --- commands/mem.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'commands/mem.c') diff --git a/commands/mem.c b/commands/mem.c index 09565505c4..f6ab538bf9 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -72,23 +72,26 @@ int memory_display(char *addr, ulong offs, ulong nbytes, int size) uint *uip = (uint *)linebuf; ushort *usp = (ushort *)linebuf; u_char *ucp = (u_char *)linebuf; + uint count = 52; printf("%08lx:", offs); - linebytes = (nbytes>DISP_LINE_LEN)?DISP_LINE_LEN:nbytes; + linebytes = (nbytes > DISP_LINE_LEN) ? DISP_LINE_LEN : nbytes; - for (i=0; i 0x7e)) -- cgit v1.2.3