summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-07-15 22:28:19 +0000
committerimp <imp@FreeBSD.org>2010-07-15 22:28:19 +0000
commitbf0075bfecb8e3b9d39b60db766f5967be908a74 (patch)
tree93c35caf4d3e598d0da64a1572a4e10d9eb9943e /usr.sbin/config/config.y
parent8ffed563bd78777b62eefeac95cf39165e42bd72 (diff)
downloadFreeBSD-src-bf0075bfecb8e3b9d39b60db766f5967be908a74.zip
FreeBSD-src-bf0075bfecb8e3b9d39b60db766f5967be908a74.tar.gz
Put warnings out to stderr rather than stdout.
MFC after: 3 days
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r--usr.sbin/config/config.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index 19f2779..430bbf0 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -365,7 +365,8 @@ newdev(char *name)
struct device *np;
if (finddev(&dtab, name)) {
- printf("WARNING: duplicate device `%s' encountered.\n", name);
+ fprintf(stderr,
+ "WARNING: duplicate device `%s' encountered.\n", name);
return;
}
@@ -425,7 +426,8 @@ newopt(struct opt_head *list, char *name, char *value, int append)
op2 = findopt(list, name);
if (op2 != NULL && !append) {
- printf("WARNING: duplicate option `%s' encountered.\n", name);
+ fprintf(stderr,
+ "WARNING: duplicate option `%s' encountered.\n", name);
return;
}
OpenPOWER on IntegriCloud