[PATCH 1/1] sandbox: fix sandbox_cmdline_cb_test_fdt()

Heinrich Schuchardt xypron.glpk at gmx.de
Fri Dec 25 16:04:26 CET 2020


fmt does not foresee any parameter.

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

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;
--
2.29.2



More information about the U-Boot mailing list