projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finish converting CONFIG_SYS_CACHELINE_SIZE to Kconfig
[platform/kernel/u-boot.git]
/
include
/
cli.h
diff --git
a/include/cli.h
b/include/cli.h
index
6da7a4a
..
3449fa6
100644
(file)
--- a/
include/cli.h
+++ b/
include/cli.h
@@
-1,8
+1,7
@@
+/* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2014 Google, Inc
* Simon Glass <sjg@chromium.org>
/*
* (C) Copyright 2014 Google, Inc
* Simon Glass <sjg@chromium.org>
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __CLI_H
*/
#ifndef __CLI_H
@@
-35,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 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
/**
* cli_simple_run_command_list() - Execute a list of command
@@
-108,7
+109,7
@@
int cli_readline_into_buffer(const char *const prompt, char *buffer,
*/
int cli_simple_parse_line(char *line, char *argv[]);
*/
int cli_simple_parse_line(char *line, char *argv[]);
-#if
def CONFIG_OF_CONTROL
+#if
CONFIG_IS_ENABLED(OF_CONTROL)
/**
* cli_process_fdt() - process the boot command from the FDT
*
/**
* cli_process_fdt() - process the boot command from the FDT
*