svn commit: r248381 - head/sys/dev/sound/pcm

Joel Dahl joel at FreeBSD.org
Sat Mar 16 17:57:01 UTC 2013


Author: joel (doc committer)
Date: Sat Mar 16 17:57:00 2013
New Revision: 248381
URL: http://svnweb.freebsd.org/changeset/base/248381

Log:
  Hide version string under verbose.
  
  Approved by:	mav

Modified:
  head/sys/dev/sound/pcm/sndstat.c

Modified: head/sys/dev/sound/pcm/sndstat.c
==============================================================================
--- head/sys/dev/sound/pcm/sndstat.c	Sat Mar 16 17:38:59 2013	(r248380)
+++ head/sys/dev/sound/pcm/sndstat.c	Sat Mar 16 17:57:00 2013	(r248381)
@@ -345,8 +345,12 @@ sndstat_prepare(struct sbuf *s)
 	struct snddev_info *d;
     	int i, j;
 
-	sbuf_printf(s, "FreeBSD Audio Driver (newpcm: %ubit %d/%s)\n",
-	    (u_int)sizeof(intpcm32_t) << 3, SND_DRV_VERSION, MACHINE_ARCH);
+	if (snd_verbose > 0) {
+		sbuf_printf(s, "FreeBSD Audio Driver (%ubit %d/%s)\n",
+		    (u_int)sizeof(intpcm32_t) << 3, SND_DRV_VERSION,
+		    MACHINE_ARCH);
+	}
+
 	if (SLIST_EMPTY(&sndstat_devlist)) {
 		sbuf_printf(s, "No devices installed.\n");
 		sbuf_finish(s);


More information about the svn-src-all mailing list