FreeCalypso > hg > freecalypso-sw
comparison target-utils/libload/cmd_memdump_human.c @ 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 | c0e063494194 |
children |
comparison
equal
deleted
inserted
replaced
23:aca1948e9713 | 24:9ee91bc6057c |
---|---|
20 return; | 20 return; |
21 if (parse_hexarg(argv[0], 8, &start) < 0) { | 21 if (parse_hexarg(argv[0], 8, &start) < 0) { |
22 printf("ERROR: arg1 must be a valid 32-bit hex address\n"); | 22 printf("ERROR: arg1 must be a valid 32-bit hex address\n"); |
23 return; | 23 return; |
24 } | 24 } |
25 if (parse_hexarg(argv[1], 2, &length) < 0) { | 25 if (parse_hexarg(argv[1], 8, &length) < 0) { |
26 printf("ERROR: arg2 must be a valid 32-bit hex value (length)\n"); | 26 printf("ERROR: arg2 must be a valid 32-bit hex value (length)\n"); |
27 return; | 27 return; |
28 } | 28 } |
29 if (start & 0xF || length & 0xF) { | 29 if (start & 0xF || length & 0xF) { |
30 printf("ERROR: implementation limit: 16-byte alignment required\n"); | 30 printf("ERROR: implementation limit: 16-byte alignment required\n"); |