mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Bastian Krause <bst@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Bastian Krause <bst@pengutronix.de>
Subject: [PATCH] bootchooser: fix state_prefix nv variable in error message
Date: Fri, 28 Mar 2025 18:16:17 +0100	[thread overview]
Message-ID: <20250328171617.1945875-1-bst@pengutronix.de> (raw)

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@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	other threads:[~2025-03-28 17:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-28 17:16 Bastian Krause [this message]
2025-03-31  6:37 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250328171617.1945875-1-bst@pengutronix.de \
    --to=bst@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox