summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-10-18 17:26:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-30 16:53:24 +0200
commit7b65cb7567280b391a752646c8f37f4385b2f29e (patch)
tree9bbc20634d3984495f1b735a6e514883ff294853 /commands
parentefa379f2244ae5abaad1b6ce139920e7919130b1 (diff)
downloadbarebox-7b65cb7567280b391a752646c8f37f4385b2f29e.tar.gz
barebox-7b65cb7567280b391a752646c8f37f4385b2f29e.tar.xz
make memory display 64bit capable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/mem.c b/commands/mem.c
index 0719700b68..2b85f8248a 100644
--- a/commands/mem.c
+++ b/commands/mem.c
@@ -55,7 +55,7 @@ static char *DEVMEM = "/dev/mem";
*/
#define DISP_LINE_LEN 16
-int memory_display(char *addr, ulong offs, ulong nbytes, int size)
+int memory_display(char *addr, loff_t offs, ulong nbytes, int size)
{
ulong linebytes, i;
u_char *cp;
@@ -72,7 +72,7 @@ int memory_display(char *addr, ulong offs, ulong nbytes, int size)
u_char *ucp = (u_char *)linebuf;
uint count = 52;
- printf("%08lx:", offs);
+ printf("%08llx:", offs);
linebytes = (nbytes > DISP_LINE_LEN) ? DISP_LINE_LEN : nbytes;
for (i = 0; i < linebytes; i += size) {