From f7e857a9465cd791b78f35cf93f3a7d66192265e Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 17 Jan 2020 22:57:09 +0100 Subject: [PATCH] [BUG] --- kaleid/kernel/sh/testcmds.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kaleid/kernel/sh/testcmds.c b/kaleid/kernel/sh/testcmds.c index 0973993..9d9895e 100644 --- a/kaleid/kernel/sh/testcmds.c +++ b/kaleid/kernel/sh/testcmds.c @@ -113,19 +113,19 @@ error_t CmdDumpATASect(int argc, char **argv, char *cmdline) error_t CmdDumpMem(int argc, char **argv, char *cmdline) { - char sector[1024] = {0}; + char sector[8] = {0}; char *address = (char*)strtoul(argv[1], NULL, 16); int nb = 1; //atoi(argv[2]); int x = 0; - int step = 16; + int step = 8; KernLog("Address begin: %p\n", address); - for (int i = 0; i < 1024*nb; i++) { + for (int i = 0; i < 8*nb; i++) { sector[i] = *address++; } - while(x < 1024*nb) { + while(x < 8*nb) { KernLog("%C", shcol); for (int i = 0; i < step; i++) { KernLog("%02x ", (uchar)sector[i+x]);