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
|
@ -66,7 +66,7 @@ static int multiconvert(const char *arg, void *result, converter convert)
|
|||
errno = 0;
|
||||
convert(arg, result);
|
||||
if (errno) {
|
||||
bb_error_msg("%s: invalid number", arg);
|
||||
bb_error_msg("invalid number '%s'", arg);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
@ -230,7 +230,7 @@ static int get_width_prec(const char *str)
|
|||
{
|
||||
int v = bb_strtoi(str, NULL, 10);
|
||||
if (errno) {
|
||||
bb_error_msg("%s: invalid number", str);
|
||||
bb_error_msg("invalid number '%s'", str);
|
||||
v = 0;
|
||||
}
|
||||
return v;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue