From 77d3e71e471fdfc9b6b1c08eaf508c7ed1adb599 Mon Sep 17 00:00:00 2001 From: des Date: Sun, 9 Mar 2003 15:08:47 +0000 Subject: 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). --- usr.sbin/config/mkheaders.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin') 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; -- cgit v1.1