diff options
author | scottl <scottl@FreeBSD.org> | 2013-08-12 19:16:55 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2013-08-12 19:16:55 +0000 |
commit | 550941808c982a4d2b2e177ba48337d1adb63bf4 (patch) | |
tree | 29ede66c2320351285d7fbfde6320885fad1d6bf /sys/dev | |
parent | e591d48c3e9c37c7edd4d0ee38dcc5d8ee8503b1 (diff) | |
download | FreeBSD-src-550941808c982a4d2b2e177ba48337d1adb63bf4.zip FreeBSD-src-550941808c982a4d2b2e177ba48337d1adb63bf4.tar.gz |
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
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/mps/mps_sas.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/mps/mps_sas.c b/sys/dev/mps/mps_sas.c index 51df10c..c77f8a4 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); |