mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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:
parent
20280807ca
commit
76131e39c3
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue