aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
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)
223 pidList = find_pid_by_name( *argv); 223 pidList = find_pid_by_name( *argv);
224 if (!pidList) { 224 if (!pidList) {
225 all_found = FALSE; 225 all_found = FALSE;
226 error_msg( "%s: no process killed\n", *argv); 226 error_msg( "%s: no process killed", *argv);
227 } 227 }
228 228
229 for(; pidList && *pidList!=0; pidList++) { 229 for(; pidList && *pidList!=0; pidList++) {
@@ -246,5 +246,5 @@ extern int kill_main(int argc, char **argv)
246 246
247 247
248 end: 248 end:
249 error_msg_and_die( "bad signal name: %s\n", *argv); 249 error_msg_and_die( "bad signal name: %s", *argv);
250} 250}
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)
99 if (tmp) 99 if (tmp)
100 sscanf(tmp, "Pid:\t%d\n" "PPid:\t%d\n", &P->pid, &P->ppid); 100 sscanf(tmp, "Pid:\t%d\n" "PPid:\t%d\n", &P->pid, &P->ppid);
101 else 101 else
102 error_msg("Internal error!\n"); 102 error_msg("Internal error!");
103 103
104 /* For busybox, ignoring effective, saved, etc */ 104 /* For busybox, ignoring effective, saved, etc */
105 tmp = strstr(S, "Uid:"); 105 tmp = strstr(S, "Uid:");
106 if (tmp) 106 if (tmp)
107 sscanf(tmp, "Uid:\t%d", &P->ruid); 107 sscanf(tmp, "Uid:\t%d", &P->ruid);
108 else 108 else
109 error_msg("Internal error!\n"); 109 error_msg("Internal error!");
110 110
111 tmp = strstr(S, "Gid:"); 111 tmp = strstr(S, "Gid:");
112 if (tmp) 112 if (tmp)
113 sscanf(tmp, "Gid:\t%d", &P->rgid); 113 sscanf(tmp, "Gid:\t%d", &P->rgid);
114 else 114 else
115 error_msg("Internal error!\n"); 115 error_msg("Internal error!");
116 116
117} 117}
118 118
@@ -137,7 +137,7 @@ extern int ps_main(int argc, char **argv)
137 137
138 dir = opendir("/proc"); 138 dir = opendir("/proc");
139 if (!dir) 139 if (!dir)
140 error_msg_and_die("Can't open /proc\n"); 140 error_msg_and_die("Can't open /proc");
141 141
142#ifdef BB_FEATURE_AUTOWIDTH 142#ifdef BB_FEATURE_AUTOWIDTH
143 ioctl(fileno(stdout), TIOCGWINSZ, &win); 143 ioctl(fileno(stdout), TIOCGWINSZ, &win);