changeset 24:9ee91bc6057c

loadagent buglet in the memory dump command argument parsing
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 04 May 2013 04:57:43 +0000
parents aca1948e9713
children 796da8d60b23
files .hgignore target-utils/libload/cmd_memdump_human.c target-utils/libload/cmd_memdump_machine.c
diffstat 3 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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$
--- 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;
 	}
--- 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;
 	}