diff mbox series

[1/1] sandbox: fix sandbox_cmdline_cb_test_fdt()

Message ID 20201225150426.85498-1-xypron.glpk@gmx.de
State Accepted
Commit b680c5539a4b29889a2d248aaa2c14e2669046fd
Delegated to: Simon Glass
Headers show
Series [1/1] sandbox: fix sandbox_cmdline_cb_test_fdt() | expand

Commit Message

Heinrich Schuchardt Dec. 25, 2020, 3:04 p.m. UTC
fmt does not foresee any parameter.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 arch/sandbox/cpu/start.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.29.2

Comments

Simon Glass Dec. 29, 2020, 3:32 a.m. UTC | #1
On Fri, 25 Dec 2020 at 08:04, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> fmt does not foresee any parameter.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  arch/sandbox/cpu/start.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Simon Glass Jan. 23, 2021, 5:27 p.m. UTC | #2
On Fri, 25 Dec 2020 at 08:04, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> fmt does not foresee any parameter.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  arch/sandbox/cpu/start.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm, thanks!
diff mbox series

Patch

diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c
index f6c98545e0..6d27f13875 100644
--- a/arch/sandbox/cpu/start.c
+++ b/arch/sandbox/cpu/start.c
@@ -213,7 +213,7 @@  static int sandbox_cmdline_cb_test_fdt(struct sandbox_state *state,
 	if (!p)
 		p = fname + strlen(fname);
 	len -= p - fname;
-	snprintf(p, len, fmt, p);
+	snprintf(p, len, fmt);
 	state->fdt_fname = fname;

 	return 0;