From 76131e39c3feefcb3fe5b96b97a14220b5f4cfd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 9 Mar 2003 15:08:47 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/config/mkheaders.c b/usr.sbin/config/mkheaders.c index e8b8934e28e..bdc8599beac 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;