Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2010 00:53:27 +0000 (UTC)
From:      Marius Strobl <marius@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: r215603 - stable/7/sys/dev/mpt
Message-ID:  <201011210053.oAL0rRD6031687@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sun Nov 21 00:53:27 2010
New Revision: 215603
URL: http://svn.freebsd.org/changeset/base/215603

Log:
  MFC: r215325
  
  Use the correct variable for determining the verbosity level in mpt_lprtc().
  While at it, fix the whitespace of that macro.
  
  PR:		149502
  Submitted by:	Andrew Boyer

Modified:
  stable/7/sys/dev/mpt/mpt.h
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/mpt/mpt.h
==============================================================================
--- stable/7/sys/dev/mpt/mpt.h	Sun Nov 21 00:53:19 2010	(r215602)
+++ stable/7/sys/dev/mpt/mpt.h	Sun Nov 21 00:53:27 2010	(r215603)
@@ -1110,10 +1110,10 @@ do {						\
 		mpt_prt(mpt, __VA_ARGS__);	\
 } while (0)
 
-#define mpt_lprtc(mpt, level, ...)		 \
-do {						 \
-	if (level <= (mpt)->debug_level)	 \
-		mpt_prtc(mpt, __VA_ARGS__);	 \
+#define mpt_lprtc(mpt, level, ...)		\
+do {						\
+	if (level <= (mpt)->verbose)		\
+		mpt_prtc(mpt, __VA_ARGS__);	\
 } while (0)
 #else
 void mpt_lprt(struct mpt_softc *, int, const char *, ...)



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