Skip to content
Snippets Groups Projects
Commit a16a84b7 authored by Jens Scharsig's avatar Jens Scharsig Committed by Wolfgang Denk
Browse files

Fix: watchdog timed out, if using md5 command


* Fix: if using md5 command watchdog timed out
* change function call md5(..) to the watchdog-safe variant
  md5_wd(..) to support watchdog reset

Signed-off-by: default avatarJens Scharsig <esw@bus-elektronik.de>
parent 3e499b6a
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ static int do_md5sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
addr = simple_strtoul(argv[1], NULL, 16);
len = simple_strtoul(argv[2], NULL, 16);
md5((unsigned char *) addr, len, output);
md5_wd((unsigned char *) addr, len, output, CHUNKSZ_MD5);
printf("md5 for %08lx ... %08lx ==> ", addr, addr + len - 1);
for (i = 0; i < 16; i++)
printf("%02x", output[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment