Print FYI messages on stderr. Previously, they were printed on stdout,

and due to buffering they would sometimes come out after the actual
error message when mkheaders() failed due to an unknown device, so you'd
get an error messages followed by 20 or 30 lines of harmless warnings.

There are lots of other warning messages in config(8) that are printed
on stdout, but these were the most egregious (at least with LINT).
This commit is contained in:
Dag-Erling Smørgrav 2003-03-09 15:08:47 +00:00
parent 20280807ca
commit 76131e39c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112042

View File

@ -138,7 +138,9 @@ do_header(char *dev, int match)
file = toheader(dev);
name = tomacro(dev);
if (match)
printf("FYI: static unit limits for %s are set: %s=%d\n", dev, name, count);
fprintf(stderr,
"FYI: static unit limits for %s are set: %s=%d\n",
dev, name, count);
remember(file);
inf = fopen(file, "r");
oldcount = -1;