The correct variable for the state prefix is
`nv.bootchooser.state_prefix`, not `nv.state_prefix`.

Fixes: cc532a3f733 ("boot: add framework for redundant boot scenarios")
Signed-off-by: Bastian Krause <b...@pengutronix.de>
---
 common/bootchooser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/bootchooser.c b/common/bootchooser.c
index 3e7bda9ab0f..6c324fb155e 100644
--- a/common/bootchooser.c
+++ b/common/bootchooser.c
@@ -381,7 +381,7 @@ struct bootchooser *bootchooser_get(void)
                        }
                        free(state_devname);
                } else {
-                       pr_err("State disabled, cannot use 
nv.state_prefix=%s\n",
+                       pr_err("State disabled, cannot use 
nv.bootchooser.state_prefix=%s\n",
                               state_prefix);
                        ret = -ENODEV;
                        goto err;
-- 
2.39.5


Reply via email to