[PATCH] bootchooser: fix state_prefix nv variable in error message
Bastian Krause
bst at pengutronix.de
Fri Mar 28 10:16:17 PDT 2025
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 <bst at 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
More information about the barebox
mailing list