Diagnostic messages belong on stderr, not stdout. SUSv3 specifies that

renice may not use stdout at all.
This commit is contained in:
Tim J. Robbins 2002-05-16 23:30:38 +00:00
parent d58f1bc48b
commit 03ed70f315
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96761

View file

@ -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);
}