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
This commit is contained in:
Scott Long 2013-08-12 19:16:55 +00:00
parent 647a92d62b
commit 32373512c3

View file

@ -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);