summaryrefslogtreecommitdiffstats
path: root/usr.bin/renice
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-05-16 23:30:38 +0000
committertjr <tjr@FreeBSD.org>2002-05-16 23:30:38 +0000
commit67bb0d1cc5c632710c55a770314560ffc51dd6ab (patch)
tree3df9a63652fee6e3083f47e1f64d703bfd44ee39 /usr.bin/renice
parent0f9e8dbadd5ef34e6369d22899b81b78cc75179c (diff)
downloadFreeBSD-src-67bb0d1cc5c632710c55a770314560ffc51dd6ab.zip
FreeBSD-src-67bb0d1cc5c632710c55a770314560ffc51dd6ab.tar.gz
Diagnostic messages belong on stderr, not stdout. SUSv3 specifies that
renice may not use stdout at all.
Diffstat (limited to 'usr.bin/renice')
-rw-r--r--usr.bin/renice/renice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c
index d1d6440..effa8cf 100644
--- a/usr.bin/renice/renice.c
+++ b/usr.bin/renice/renice.c
@@ -142,7 +142,8 @@ donice(int which, int who, int prio, int incr)
warn("%d: setpriority", who);
return (1);
}
- printf("%d: old priority %d, new priority %d\n", who, oldprio, prio);
+ fprintf(stderr, "%d: old priority %d, new priority %d\n", who,
+ oldprio, prio);
return (0);
}
OpenPOWER on IntegriCloud