Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2009 19:15:28 +0000 (UTC)
From:      Nick Hibma <n_hibma@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r194253 - stable/7/sys/dev/usb
Message-ID:  <200906151915.n5FJFShx098710@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



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