aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-01-31 19:00:21 +0000
committerMatt Kraai <kraai@debian.org>2001-01-31 19:00:21 +0000
commitdd19c6990496023fe23fefef8f1798740f7d39c6 (patch)
tree3933adefa4171173db78fa2389146ac89f4edb86 /procps
parent63ec2732454a0c973305794e185e488106f6b282 (diff)
downloadbusybox-dd19c6990496023fe23fefef8f1798740f7d39c6.tar.gz
Removed trailing \n from error_msg{,_and_die} messages.
Diffstat (limited to 'procps')
-rw-r--r--procps/kill.c4
-rw-r--r--procps/ps.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/procps/kill.c b/procps/kill.c
index 3eb829abf..00a4d5c40 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -223,7 +223,7 @@ extern int kill_main(int argc, char **argv)
pidList = find_pid_by_name( *argv);
if (!pidList) {
all_found = FALSE;
- error_msg( "%s: no process killed\n", *argv);
+ error_msg( "%s: no process killed", *argv);
}
for(; pidList && *pidList!=0; pidList++) {
@@ -246,5 +246,5 @@ extern int kill_main(int argc, char **argv)
end:
- error_msg_and_die( "bad signal name: %s\n", *argv);
+ error_msg_and_die( "bad signal name: %s", *argv);
}
diff --git a/procps/ps.c b/procps/ps.c
index 08597fe3a..4ff7a8a58 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -99,20 +99,20 @@ static void parse_proc_status(char *S, proc_t * P)
if (tmp)
sscanf(tmp, "Pid:\t%d\n" "PPid:\t%d\n", &P->pid, &P->ppid);
else
- error_msg("Internal error!\n");
+ error_msg("Internal error!");
/* For busybox, ignoring effective, saved, etc */
tmp = strstr(S, "Uid:");
if (tmp)
sscanf(tmp, "Uid:\t%d", &P->ruid);
else
- error_msg("Internal error!\n");
+ error_msg("Internal error!");
tmp = strstr(S, "Gid:");
if (tmp)
sscanf(tmp, "Gid:\t%d", &P->rgid);
else
- error_msg("Internal error!\n");
+ error_msg("Internal error!");
}
@@ -137,7 +137,7 @@ extern int ps_main(int argc, char **argv)
dir = opendir("/proc");
if (!dir)
- error_msg_and_die("Can't open /proc\n");
+ error_msg_and_die("Can't open /proc");
#ifdef BB_FEATURE_AUTOWIDTH
ioctl(fileno(stdout), TIOCGWINSZ, &win);