diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-14 01:51:25 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-14 01:51:25 +0000 |
commit | d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /procps/ps.c | |
parent | 4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff) | |
download | busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.gz busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.bz2 busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.zip |
Use errorMsg rather than fprintf.
Diffstat (limited to 'procps/ps.c')
-rw-r--r-- | procps/ps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/procps/ps.c b/procps/ps.c index a8d000546..682135944 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -97,20 +97,20 @@ static void parse_proc_status(char *S, proc_t * P) | |||
97 | if (tmp) | 97 | if (tmp) |
98 | sscanf(tmp, "Pid:\t%d\n" "PPid:\t%d\n", &P->pid, &P->ppid); | 98 | sscanf(tmp, "Pid:\t%d\n" "PPid:\t%d\n", &P->pid, &P->ppid); |
99 | else | 99 | else |
100 | fprintf(stderr, "Internal error!\n"); | 100 | errorMsg("Internal error!\n"); |
101 | 101 | ||
102 | /* For busybox, ignoring effective, saved, etc */ | 102 | /* For busybox, ignoring effective, saved, etc */ |
103 | tmp = strstr(S, "Uid:"); | 103 | tmp = strstr(S, "Uid:"); |
104 | if (tmp) | 104 | if (tmp) |
105 | sscanf(tmp, "Uid:\t%d", &P->ruid); | 105 | sscanf(tmp, "Uid:\t%d", &P->ruid); |
106 | else | 106 | else |
107 | fprintf(stderr, "Internal error!\n"); | 107 | errorMsg("Internal error!\n"); |
108 | 108 | ||
109 | tmp = strstr(S, "Gid:"); | 109 | tmp = strstr(S, "Gid:"); |
110 | if (tmp) | 110 | if (tmp) |
111 | sscanf(tmp, "Gid:\t%d", &P->rgid); | 111 | sscanf(tmp, "Gid:\t%d", &P->rgid); |
112 | else | 112 | else |
113 | fprintf(stderr, "Internal error!\n"); | 113 | errorMsg("Internal error!\n"); |
114 | 114 | ||
115 | } | 115 | } |
116 | 116 | ||