summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authordufault <dufault@FreeBSD.org>1995-03-07 11:03:42 +0000
committerdufault <dufault@FreeBSD.org>1995-03-07 11:03:42 +0000
commit4d2c29c2b2abf20c0df872789c2d058baf59cf31 (patch)
treeed86c197353400d1262fe7cf8c39fa116cccf241 /usr.sbin/config
parent600c7320bdd35ab9814b69446911dcb046972c36 (diff)
downloadFreeBSD-src-4d2c29c2b2abf20c0df872789c2d058baf59cf31.zip
FreeBSD-src-4d2c29c2b2abf20c0df872789c2d058baf59cf31.tar.gz
Change warning message for when a device is wired to a floating
host adapter to something hopefully clearer. Take into account that "wnum()" writes into a static buffer in the warning.
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/mkioconf.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c
index 413be07..0f2af8a 100644
--- a/usr.sbin/config/mkioconf.c
+++ b/usr.sbin/config/mkioconf.c
@@ -855,10 +855,15 @@ scbus_devtab(fp, dev_idp)
continue;
}
- if (mp->d_conn == 0) {
+ if (mp->d_conn == 0 &&
+ (dp->d_target != UNKNOWN && dp->d_target != QUES)) {
fprintf(stderr,
- "%s%s: Warning, can't tell what is attached to scbus%s.\n",
- dp->d_name, wnum(dp->d_unit), wnum(mp->d_unit));
+ "Warning: %s%s is configured at ",
+ dp->d_name, wnum(dp->d_unit));
+
+ fprintf(stderr,
+ "%s%s which is not fixed at a single adapter.\n",
+ mp->d_name, wnum(mp->d_unit));
}
fprintf(fp, "{ ");
OpenPOWER on IntegriCloud