mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
647a92d62b
commit
32373512c3
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue