svn commit: r254253 - head/sys/dev/mps
Scott Long
scottl at FreeBSD.org
Mon Aug 12 19:16:56 UTC 2013
Author: scottl
Date: Mon Aug 12 19:16:55 2013
New Revision: 254253
URL: http://svnweb.freebsd.org/changeset/base/254253
Log:
r253460 accidentally some moderately expensive debugging code, even
when debugging isn't enabled. Work around this.
Submitted by: mav
Obtained from: Netflix
MFC after: 3 days
Modified:
head/sys/dev/mps/mps_sas.c
Modified: head/sys/dev/mps/mps_sas.c
==============================================================================
--- head/sys/dev/mps/mps_sas.c Mon Aug 12 18:17:45 2013 (r254252)
+++ head/sys/dev/mps/mps_sas.c Mon Aug 12 19:16:55 2013 (r254253)
@@ -307,6 +307,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-head
mailing list