[PATCH] bootchooser: clarify error message for disabled barebox-state

Enrico Jörns ejo at pengutronix.de
Wed Jan 14 04:48:36 PST 2026


Make clear that:
- state was configured as bootchooser backend
- is disabled in kconfig

Signed-off-by: Enrico Jörns <ejo at pengutronix.de>
---
 common/bootchooser.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/bootchooser.c b/common/bootchooser.c
index a79eee8ca2..caef15a03f 100644
--- a/common/bootchooser.c
+++ b/common/bootchooser.c
@@ -384,8 +384,9 @@ struct bootchooser *bootchooser_get(void)
 			}
 			free(state_devname);
 		} else {
-			pr_err("State disabled, cannot use nv.bootchooser.state_prefix=%s\n",
+			pr_err("barebox-state backend selected (nv.bootchooser.state_prefix=%s) but CONFIG_STATE is disabled\n",
 			       state_prefix);
+
 			ret = -ENODEV;
 			goto err;
 		}
-- 
2.47.3




More information about the barebox mailing list