diff options
author | des <des@FreeBSD.org> | 2003-03-09 15:08:47 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-03-09 15:08:47 +0000 |
commit | 77d3e71e471fdfc9b6b1c08eaf508c7ed1adb599 (patch) | |
tree | 73e9a07c9f757aa50bf6fee32fcd97f33358ea4b /usr.sbin | |
parent | 151e46fd29ff5d59b478f0ae11f91a33b6ded8ec (diff) | |
download | FreeBSD-src-77d3e71e471fdfc9b6b1c08eaf508c7ed1adb599.zip FreeBSD-src-77d3e71e471fdfc9b6b1c08eaf508c7ed1adb599.tar.gz |
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).
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/config/mkheaders.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/config/mkheaders.c b/usr.sbin/config/mkheaders.c index e8b8934..bdc8599 100644 --- a/usr.sbin/config/mkheaders.c +++ b/usr.sbin/config/mkheaders.c @@ -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; |