Modify nandwrite to accept hex argument for "-s" argument; also
make an error message more accurate.
Signed-off-by: Steven Finney <sfinney@healthhero.com>
pad = 1;
break;
case 's':
- mtdoffset = atoi (optarg);
+ mtdoffset = strtol (optarg, NULL, 0);
break;
case 'b':
blockalign = atoi (optarg);
close(fd);
if (imglen > 0) {
- perror ("Data did not fit into device, due to bad blocks\n");
+ perror ("Data was only partially written due to error\n");
exit (1);
}