From 4d2c29c2b2abf20c0df872789c2d058baf59cf31 Mon Sep 17 00:00:00 2001 From: dufault Date: Tue, 7 Mar 1995 11:03:42 +0000 Subject: 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. --- usr.sbin/config/mkioconf.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'usr.sbin/config') 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, "{ "); -- cgit v1.1