svn commit: r256236 - stable/9/sys/dev/mps
Alexander Motin
mav at FreeBSD.org
Wed Oct 9 19:59:26 UTC 2013
Author: mav
Date: Wed Oct 9 19:59:25 2013
New Revision: 256236
URL: http://svnweb.freebsd.org/changeset/base/256236
Log:
MFC r254253, r254257:
r253460 accidentally some moderately expensive debugging code, even
when debugging isn't enabled. Work around this.
Modified:
stable/9/sys/dev/mps/mps_sas.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/mps/mps_sas.c
==============================================================================
--- stable/9/sys/dev/mps/mps_sas.c Wed Oct 9 19:57:27 2013 (r256235)
+++ stable/9/sys/dev/mps/mps_sas.c Wed Oct 9 19:59:25 2013 (r256236)
@@ -308,6 +308,10 @@ mpssas_log_command(struct mps_command *c
if (cm == NULL)
return;
+ /* No need to be in here if debugging isn't enabled */
+ if ((cm->cm_sc->mps_debug & level) == 0)
+ return;
+
sbuf_new(&sb, str, sizeof(str), 0);
va_start(ap, fmt);
More information about the svn-src-stable-9
mailing list