aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorPeter Dufault <dufault@FreeBSD.org>1995-03-07 11:03:42 +0000
committerPeter Dufault <dufault@FreeBSD.org>1995-03-07 11:03:42 +0000
commit84d84db480f18d795f8d37309e3cfd961bf024fa (patch)
treeed86c197353400d1262fe7cf8c39fa116cccf241 /usr.sbin
parent06f0e1ceb89f55f2975ea16f73da755a8e0432d5 (diff)
downloadsrc-84d84db480f18d795f8d37309e3cfd961bf024fa.tar.gz
src-84d84db480f18d795f8d37309e3cfd961bf024fa.zip
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.
Notes
Notes: svn path=/head/; revision=6941
Diffstat (limited to 'usr.sbin')
-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 413be0740cdc..0f2af8a1f362 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, "{ ");