aboutsummaryrefslogtreecommitdiff
path: root/coreutils/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/printf.c')
-rw-r--r--coreutils/printf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c
index eb53fa490..2cc238439 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -4,7 +4,7 @@
4 Copyright 1999 Dave Cinege 4 Copyright 1999 Dave Cinege
5 Portions copyright (C) 1990-1996 Free Software Foundation, Inc. 5 Portions copyright (C) 1990-1996 Free Software Foundation, Inc.
6 6
7 Licensed under GPL v2 or later, see file LICENSE in this tarball for details. 7 Licensed under GPLv2 or later, see file LICENSE in this source tree.
8*/ 8*/
9 9
10/* Usage: printf format [argument...] 10/* Usage: printf format [argument...]
@@ -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;