summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-20 05:52:00 +0000
committertjr <tjr@FreeBSD.org>2004-07-20 05:52:00 +0000
commit164861df2d9f054fc316a15581decf1c225f170f (patch)
treea136a821ce94f8a58d0bf2f87298863e230757b0 /bin/ps
parenta9a75e4e9e9509a828c305729a1b438585f4c41a (diff)
downloadFreeBSD-src-164861df2d9f054fc316a15581decf1c225f170f.zip
FreeBSD-src-164861df2d9f054fc316a15581decf1c225f170f.tar.gz
Use warn() instead of perror().
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 134ceb1..1870c53 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -785,7 +785,7 @@ label(KINFO *k, VARENT *ve)
v = ve->var;
string = NULL;
if (mac_prepare_process_label(&proclabel) == -1) {
- perror("mac_prepare_process_label");
+ warn("mac_prepare_process_label");
goto out;
}
error = mac_get_pid(k->ki_p->ki_pid, proclabel);
@@ -811,7 +811,7 @@ s_label(KINFO *k)
int error, size = 0;
if (mac_prepare_process_label(&proclabel) == -1) {
- perror("mac_prepare_process_label");
+ warn("mac_prepare_process_label");
return (0);
}
error = mac_get_pid(k->ki_p->ki_pid, proclabel);
OpenPOWER on IntegriCloud