diff options
| author | Tom Rini <trini@konsulko.com> | 2020-12-07 17:16:23 -0500 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2020-12-07 17:16:23 -0500 |
| commit | cd833de0593fa2346dddab21eff6ccf2411380d3 (patch) | |
| tree | f87835b392c62414199e5fb926d0f4f63d92ec9e /include/cli.h | |
| parent | 5157ea526142ace7b0b19939b0d31ace4276cda7 (diff) | |
| parent | 51bb33846ad2b045799d2c43ca773fafa36e6ec8 (diff) | |
| download | u-boot-cd833de0593fa2346dddab21eff6ccf2411380d3.tar.gz u-boot-cd833de0593fa2346dddab21eff6ccf2411380d3.tar.xz u-boot-cd833de0593fa2346dddab21eff6ccf2411380d3.zip | |
Merge branch '2020-12-07-bootm-and-spl-atf-improvements' into next
- Series to improve "bootm" by allowing variable evaluation within the
cmdline we would be passing. This will help with Chrome OS but can be
useful elsewhere.
- Improve ATF (TF-A) support within SPL.
Diffstat (limited to 'include/cli.h')
| -rw-r--r-- | include/cli.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cli.h b/include/cli.h index 39b913743b..3449fa6ae7 100644 --- a/include/cli.h +++ b/include/cli.h @@ -34,8 +34,10 @@ int cli_simple_run_command(const char *cmd, int flag); * * @param input Input string possible containing $() / ${} vars * @param output Output string with $() / ${} vars expanded + * @param max_size Maximum size of @output (including terminator) + * @return 0 if OK, -ENOSPC if we ran out of space in @output */ -void cli_simple_process_macros(const char *input, char *output); +int cli_simple_process_macros(const char *input, char *output, int max_size); /** * cli_simple_run_command_list() - Execute a list of command |
