[PATCH v3 09/32] cmd: Use an #ifdef around run_commandf()
Simon Glass
sjg at chromium.org
Tue Oct 17 00:28:00 CEST 2023
This is not available if CMDLINE is disabled, so add an #ifdef to correct
this.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
common/cli.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/cli.c b/common/cli.c
index 3916a7b10a7d..4d0fea4387f2 100644
--- a/common/cli.c
+++ b/common/cli.c
@@ -129,6 +129,7 @@ int run_command_list(const char *cmd, int len, int flag)
return rcode;
}
+#ifdef CONFIG_CMDLINE
int run_commandf(const char *fmt, ...)
{
va_list args;
@@ -153,6 +154,7 @@ int run_commandf(const char *fmt, ...)
}
return run_command(console_buffer, 0);
}
+#endif /* CMDLINE */
/****************************************************************************/
--
2.42.0.655.g421f12c284-goog
More information about the U-Boot
mailing list