From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 15 Mar 2021 11:52:17 -0400 Subject: [PATCH v2 2/6] log: Handle line continuation In-Reply-To: <20210121031057.559301-3-sjg@chromium.org> References: <20210121031057.559301-1-sjg@chromium.org> <20210121031057.559301-3-sjg@chromium.org> Message-ID: <20210315155217.GG1310@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 Wed, Jan 20, 2021 at 08:10:53PM -0700, Simon Glass wrote: > When multiple log() calls are used which don't end in newline, the > log prefix is prepended multiple times in the same line. This makes the > output look strange. > > Fix this by detecting when the previous log record did not end in newline. > In that case, setting a flag. > > Drop the unused BUFFSIZE in the test while we are here. > > As an example implementation, update log_console to check the flag and > produce the expected output. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: