Skip to content
Snippets Groups Projects
Commit 1a62d64c authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

cli: Support macro processing with a fixed-size buffer


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: default avatarSimon Glass <sjg@chromium.org>
parent 488d89af
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment