summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-11-06 13:34:36 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-11-10 08:42:29 +0100
commit4db0f1c3dbe6173fdf91cbeb83e250719332c6a3 (patch)
treead9f178fac573cd60e6e2a8ecc5285e09afeb25f /commands
parentc03481bfcb29abfebf62e491a60caa0ebfb57a36 (diff)
downloadbarebox-4db0f1c3dbe6173fdf91cbeb83e250719332c6a3.tar.gz
barebox-4db0f1c3dbe6173fdf91cbeb83e250719332c6a3.tar.xz
nand command: Allow offsets with [kM] suffixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/nand-bitflip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/nand-bitflip.c b/commands/nand-bitflip.c
index 217a243f66..1395021ec0 100644
--- a/commands/nand-bitflip.c
+++ b/commands/nand-bitflip.c
@@ -53,7 +53,7 @@ static int do_nand_bitflip(int argc, char *argv[])
block = simple_strtoul(optarg, NULL, 0);
break;
case 'o':
- offset = simple_strtoull(optarg, NULL, 0);
+ offset = strtoull_suffix(optarg, NULL, 0);
break;
case 'c':
check = 1;