Date: Mon, 12 Aug 2013 19:16:56 +0000 (UTC) From: Scott Long <scottl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254253 - head/sys/dev/mps Message-ID: <201308121916.r7CJGuHj038004@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308121916.r7CJGuHj038004>