svn commit: r194253 - stable/7/sys/dev/usb

Nick Hibma n_hibma at FreeBSD.org
Mon Jun 15 19:15:29 UTC 2009


Author: n_hibma
Date: Mon Jun 15 19:15:28 2009
New Revision: 194253
URL: http://svn.freebsd.org/changeset/base/194253

Log:
  Hide 'Unsupported ATAPI command - trying anyway' under bootverbose. This
  caused more noise than was actually useful.

Modified:
  stable/7/sys/dev/usb/umass.c

Modified: stable/7/sys/dev/usb/umass.c
==============================================================================
--- stable/7/sys/dev/usb/umass.c	Mon Jun 15 19:01:53 2009	(r194252)
+++ stable/7/sys/dev/usb/umass.c	Mon Jun 15 19:15:28 2009	(r194253)
@@ -3529,9 +3529,10 @@ umass_atapi_transform(struct umass_softc
 	case READ_12:
 	case WRITE_12:
 	default:
-		printf("%s: Unsupported ATAPI command 0x%02x"
-			" - trying anyway\n",
-			device_get_nameunit(sc->sc_dev), cmd[0]);
+		if (bootverbose)
+			printf("%s: Unsupported ATAPI command 0x%02x"
+				" - trying anyway\n",
+				device_get_nameunit(sc->sc_dev), cmd[0]);
 		memcpy(*rcmd, cmd, cmdlen);
 		return 1;
 	}


More information about the svn-src-stable-7 mailing list