summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenys Vlasenko2010-08-29 13:29:02 +0200
committerDenys Vlasenko2010-08-29 13:29:02 +0200
commitb32a5436633f53f0abf0fa29105cf7e5b65091cf (patch)
treee84b5d75ddee2a7bc3cb8a42d9ee669c15ba6e6f /procps
parenta78227dc7320738ec930edbde1aaa0023a51ee4c (diff)
downloadbusybox-b32a5436633f53f0abf0fa29105cf7e5b65091cf.zip
busybox-b32a5436633f53f0abf0fa29105cf7e5b65091cf.tar.gz
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 'procps')
-rw-r--r--procps/kill.c4
-rw-r--r--procps/renice.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/procps/kill.c b/procps/kill.c
index 4ed94b0..b51d44a 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -153,7 +153,7 @@ int kill_main(int argc, char **argv)
arg = argv[i];
omit = bb_strtoi(arg, NULL, 10);
if (errno) {
- bb_error_msg("bad pid '%s'", arg);
+ bb_error_msg("invalid number '%s'", arg);
ret = 1;
goto resume;
}
@@ -211,7 +211,7 @@ int kill_main(int argc, char **argv)
arg++;
pid = bb_strtoi(arg, NULL, 10);
if (errno) {
- bb_error_msg("bad pid '%s'", arg);
+ bb_error_msg("invalid number '%s'", arg);
errors++;
} else if (kill(pid, signo) != 0) {
bb_perror_msg("can't kill pid %d", (int)pid);
diff --git a/procps/renice.c b/procps/renice.c
index 81ee89c..0a73cbe 100644
--- a/procps/renice.c
+++ b/procps/renice.c
@@ -91,7 +91,7 @@ int renice_main(int argc UNUSED_PARAM, char **argv)
} else {
who = bb_strtou(arg, NULL, 10);
if (errno) {
- bb_error_msg("bad value: %s", arg);
+ bb_error_msg("invalid number '%s'", arg);
goto HAD_ERROR;
}
}