aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mps
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2013-08-12 19:16:55 +0000
committerScott Long <scottl@FreeBSD.org>2013-08-12 19:16:55 +0000
commit32373512c3cdfc4fa48bc6a4a12340a2af692048 (patch)
tree29ede66c2320351285d7fbfde6320885fad1d6bf /sys/dev/mps
parent647a92d62bce012e59743a058ba4b63b880afc33 (diff)
downloadsrc-32373512c3cdfc4fa48bc6a4a12340a2af692048.tar.gz
src-32373512c3cdfc4fa48bc6a4a12340a2af692048.zip
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
Notes
Notes: svn path=/head/; revision=254253
Diffstat (limited to 'sys/dev/mps')
-rw-r--r--sys/dev/mps/mps_sas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/mps/mps_sas.c b/sys/dev/mps/mps_sas.c
index 51df10c9ebb1..c77f8a4066df 100644
--- a/sys/dev/mps/mps_sas.c
+++ b/sys/dev/mps/mps_sas.c
@@ -307,6 +307,10 @@ mpssas_log_command(struct mps_command *cm, u_int level, const char *fmt, ...)
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);