diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-10-18 17:26:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-30 16:53:24 +0200 |
commit | 7b65cb7567280b391a752646c8f37f4385b2f29e (patch) | |
tree | 9bbc20634d3984495f1b735a6e514883ff294853 /commands/mem.c | |
parent | efa379f2244ae5abaad1b6ce139920e7919130b1 (diff) | |
download | barebox-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/mem.c')
-rw-r--r-- | commands/mem.c | 4 |
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) { |