diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-29 13:29:02 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-29 13:29:02 +0200 |
commit | b32a5436633f53f0abf0fa29105cf7e5b65091cf (patch) | |
tree | e84b5d75ddee2a7bc3cb8a42d9ee669c15ba6e6f /coreutils | |
parent | a78227dc7320738ec930edbde1aaa0023a51ee4c (diff) | |
download | busybox-w32-b32a5436633f53f0abf0fa29105cf7e5b65091cf.tar.gz busybox-w32-b32a5436633f53f0abf0fa29105cf7e5b65091cf.tar.bz2 busybox-w32-b32a5436633f53f0abf0fa29105cf7e5b65091cf.zip |
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>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/printf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c index 3497148e3..2cc238439 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
@@ -66,7 +66,7 @@ static int multiconvert(const char *arg, void *result, converter convert) | |||
66 | errno = 0; | 66 | errno = 0; |
67 | convert(arg, result); | 67 | convert(arg, result); |
68 | if (errno) { | 68 | if (errno) { |
69 | bb_error_msg("%s: invalid number", arg); | 69 | bb_error_msg("invalid number '%s'", arg); |
70 | return 1; | 70 | return 1; |
71 | } | 71 | } |
72 | return 0; | 72 | return 0; |
@@ -230,7 +230,7 @@ static int get_width_prec(const char *str) | |||
230 | { | 230 | { |
231 | int v = bb_strtoi(str, NULL, 10); | 231 | int v = bb_strtoi(str, NULL, 10); |
232 | if (errno) { | 232 | if (errno) { |
233 | bb_error_msg("%s: invalid number", str); | 233 | bb_error_msg("invalid number '%s'", str); |
234 | v = 0; | 234 | v = 0; |
235 | } | 235 | } |
236 | return v; | 236 | return v; |