sandbox: fix sandbox_cmdline_cb_test_fdt()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 25 Dec 2020 15:04:26 +0000 (16:04 +0100)
committerSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2021 21:25:41 +0000 (14:25 -0700)
fmt does not foresee any parameter.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/start.c

index 2d18d9d..2542580 100644 (file)
@@ -215,7 +215,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;