mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
nandwrite: allow hex values in the -s parameter
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
cc131534e2
commit
a78227dc73
@ -71,7 +71,7 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
fd = xopen(argv[0], O_RDWR);
|
fd = xopen(argv[0], O_RDWR);
|
||||||
xioctl(fd, MEMGETINFO, &meminfo);
|
xioctl(fd, MEMGETINFO, &meminfo);
|
||||||
|
|
||||||
mtdoffset = xatou(opt_s);
|
mtdoffset = bb_strtou(opt_s, NULL, 0);
|
||||||
|
|
||||||
/* Pull it into a CPU register (hopefully) - smaller code that way */
|
/* Pull it into a CPU register (hopefully) - smaller code that way */
|
||||||
meminfo_writesize = meminfo.writesize;
|
meminfo_writesize = meminfo.writesize;
|
||||||
|
Loading…
Reference in New Issue
Block a user