Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Dec 2017 08:16:31 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327379 - head/sys/isa
Message-ID:  <201712300816.vBU8GVFu007528@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Dec 30 08:16:31 2017
New Revision: 327379
URL: https://svnweb.freebsd.org/changeset/base/327379

Log:
  On further testing on actual machines with this hardware, we should
  only warn for devices that are attached. Add missing \n.

Modified:
  head/sys/isa/isa_common.c

Modified: head/sys/isa/isa_common.c
==============================================================================
--- head/sys/isa/isa_common.c	Sat Dec 30 07:59:32 2017	(r327378)
+++ head/sys/isa/isa_common.c	Sat Dec 30 08:16:31 2017	(r327379)
@@ -573,9 +573,10 @@ isa_probe_children(device_t dev)
 
 		err = device_probe_and_attach(child);
 		if (err == 0 && idev->id_vendorid == 0 &&
-		    strcmp(kern_ident, "GENERIC") == 0)
+		    strcmp(kern_ident, "GENERIC") == 0 &&
+		    device_is_attached(child))
 			device_printf(child,
-			    "non-PNP ISA device will be removed from GENERIC in FreeBSD 12.");
+			    "non-PNP ISA device will be removed from GENERIC in FreeBSD 12.\n");
 	}
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712300816.vBU8GVFu007528>