From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 16 Jan 2021 11:22:16 -0500 Subject: [PATCH v2 9/9] log: call vsnprintf only when it is needed to emit trace In-Reply-To: <20201127102100.11721-8-patrick.delaunay@st.com> References: <20201127102100.11721-1-patrick.delaunay@st.com> <20201127102100.11721-8-patrick.delaunay@st.com> Message-ID: <20210116162216.GS9782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Nov 27, 2020 at 11:20:59AM +0100, Patrick Delaunay wrote: > Reduce the log overhead when the traces are filtered, > by moving the vsnprintf call from _log() to log_dispatch(). > > This patch avoids the printf treatment when LOG features is > activated, but trace is filtered, for example when > MAX_LOG_LEVEL=8 and LOG_DEFAULT_LEVEL=6. > > Reviewed-by: Simon Glass > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: