[PATCH 10/25] cmd: Use an #ifdef around run_commandf()
Simon Glass
sjg at chromium.org
Sun Sep 24 22:39:28 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>
---
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.515.g380fc7ccd1-goog
More information about the U-Boot
mailing list