nandwrite: complain on malformed -s NUM
Elsewhere: use common error message. -30 bytes net size change Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
a78227dc73
commit
b32a543663
5 changed files with 8 additions and 6 deletions
|
@ -72,6 +72,8 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv)
|
|||
xioctl(fd, MEMGETINFO, &meminfo);
|
||||
|
||||
mtdoffset = bb_strtou(opt_s, NULL, 0);
|
||||
if (errno)
|
||||
bb_error_msg_and_die("invalid number '%s'", opt_s);
|
||||
|
||||
/* Pull it into a CPU register (hopefully) - smaller code that way */
|
||||
meminfo_writesize = meminfo.writesize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue