summaryrefslogtreecommitdiffstats
path: root/usr.bin/pkill
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-03-26 02:20:52 +0000
committergad <gad@FreeBSD.org>2004-03-26 02:20:52 +0000
commit287db31bb76fbb7c65a3e04745aece2a91a3ac4e (patch)
tree3e96977e358bc3144f802497b04cc88d127652a4 /usr.bin/pkill
parent571652e41dc01b73c157a176ad2cd60db08f9396 (diff)
downloadFreeBSD-src-287db31bb76fbb7c65a3e04745aece2a91a3ac4e.zip
FreeBSD-src-287db31bb76fbb7c65a3e04745aece2a91a3ac4e.tar.gz
Send those -Debug messages to stderr, not stdout...
Diffstat (limited to 'usr.bin/pkill')
-rw-r--r--usr.bin/pkill/pkill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pkill/pkill.c b/usr.bin/pkill/pkill.c
index 19eb910..be7f58a 100644
--- a/usr.bin/pkill/pkill.c
+++ b/usr.bin/pkill/pkill.c
@@ -292,7 +292,7 @@ main(int argc, char **argv)
for (i = 0, kp = plist; i < nproc; i++, kp++) {
if ((kp->ki_flag & P_SYSTEM) != 0) {
if (debug_opt > 0)
- printf("* Skipped %5d %3d %s\n",
+ fprintf(stderr, "* Skipped %5d %3d %s\n",
kp->ki_pid, kp->ki_uid, kp->ki_comm);
continue;
}
@@ -331,7 +331,7 @@ main(int argc, char **argv)
const char *rv_res = "NoMatch";
if (selected[i])
rv_res = "Matched";
- printf("* %s %5d %3d %s\n", rv_res,
+ fprintf(stderr, "* %s %5d %3d %s\n", rv_res,
kp->ki_pid, kp->ki_uid, mstr);
}
}
OpenPOWER on IntegriCloud