# HG changeset patch # User Michael Spacefalcon # Date 1367643463 0 # Node ID 9ee91bc6057cbef4d4a6bc257f30c4075d77e046 # Parent aca1948e9713341fd3b02d937601fdc135e59b06 loadagent buglet in the memory dump command argument parsing diff -r aca1948e9713 -r 9ee91bc6057c .hgignore --- a/.hgignore Sat May 04 04:52:05 2013 +0000 +++ b/.hgignore Sat May 04 04:57:43 2013 +0000 @@ -5,6 +5,7 @@ \.bin$ \.srec$ +^loadtools/fc-loadtool ^loadtools/fc-sertool ^target-utils/.*/crt0\.S$ diff -r aca1948e9713 -r 9ee91bc6057c target-utils/libload/cmd_memdump_human.c --- a/target-utils/libload/cmd_memdump_human.c Sat May 04 04:52:05 2013 +0000 +++ b/target-utils/libload/cmd_memdump_human.c Sat May 04 04:57:43 2013 +0000 @@ -22,7 +22,7 @@ printf("ERROR: arg1 must be a valid 32-bit hex address\n"); return; } - if (parse_hexarg(argv[1], 2, &length) < 0) { + if (parse_hexarg(argv[1], 8, &length) < 0) { printf("ERROR: arg2 must be a valid 32-bit hex value (length)\n"); return; } diff -r aca1948e9713 -r 9ee91bc6057c target-utils/libload/cmd_memdump_machine.c --- a/target-utils/libload/cmd_memdump_machine.c Sat May 04 04:52:05 2013 +0000 +++ b/target-utils/libload/cmd_memdump_machine.c Sat May 04 04:57:43 2013 +0000 @@ -22,7 +22,7 @@ printf("ERROR: arg1 must be a valid 32-bit hex address\n"); return; } - if (parse_hexarg(argv[1], 2, &length) < 0) { + if (parse_hexarg(argv[1], 8, &length) < 0) { printf("ERROR: arg2 must be a valid 32-bit hex value (length)\n"); return; }