diff options
author | tjr <tjr@FreeBSD.org> | 2002-05-16 23:30:38 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-05-16 23:30:38 +0000 |
commit | 67bb0d1cc5c632710c55a770314560ffc51dd6ab (patch) | |
tree | 3df9a63652fee6e3083f47e1f64d703bfd44ee39 | |
parent | 0f9e8dbadd5ef34e6369d22899b81b78cc75179c (diff) | |
download | FreeBSD-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.
-rw-r--r-- | usr.bin/renice/renice.c | 3 |
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); } |