diff options
-rw-r--r-- | commands/mem.c | 4 | ||||
-rw-r--r-- | include/common.h | 2 |
2 files changed, 3 insertions, 3 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) { diff --git a/include/common.h b/include/common.h index 6b02c96408..c7707bae50 100644 --- a/include/common.h +++ b/include/common.h @@ -229,7 +229,7 @@ int run_shell(void); #define PAGE_SIZE 4096 #define PAGE_SHIFT 12 -int memory_display(char *addr, ulong offs, ulong nbytes, int size); +int memory_display(char *addr, loff_t offs, ulong nbytes, int size); extern const char version_string[]; #ifdef CONFIG_BANNER |