From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 7 Dec 2020 17:19:39 -0500 Subject: [PATCH v2 11/12] cli: Support macro processing with a fixed-size buffer In-Reply-To: <20201105173349.903603-12-sjg@chromium.org> References: <20201105173349.903603-1-sjg@chromium.org> <20201105173349.903603-12-sjg@chromium.org> Message-ID: <20201207221939.GA32272@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 Thu, Nov 05, 2020 at 10:33:47AM -0700, Simon Glass wrote: > At present cli_simple_process_macros() requires that the caller provide > an output buffer that is exactly CONFIG_SYS_CBSIZE bytes in length. This > makes sense since it is designed to be used from the command line. But we > also want to use it for bootargs substitution. > > Update the function to allow the caller to specify the buffer size. Also > return an error if the buffer is exhausted. The caller can ignore that if > preferred. > > 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: