Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2010 22:34:34 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215325 - head/sys/dev/mpt
Message-ID:  <201011142234.oAEMYYhu096005@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sun Nov 14 22:34:33 2010
New Revision: 215325
URL: http://svn.freebsd.org/changeset/base/215325

Log:
  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
  MFC after:	1 week

Modified:
  head/sys/dev/mpt/mpt.h

Modified: head/sys/dev/mpt/mpt.h
==============================================================================
--- head/sys/dev/mpt/mpt.h	Sun Nov 14 22:17:12 2010	(r215324)
+++ head/sys/dev/mpt/mpt.h	Sun Nov 14 22:34:33 2010	(r215325)
@@ -1112,10 +1112,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?201011142234.oAEMYYhu096005>