From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: "Enrico Jörns" <ejo@pengutronix.de>, barebox@lists.infradead.org
Subject: Re: [PATCH] state: helpful error message if state GUID cannot be found
Date: Tue, 13 Jan 2026 14:27:46 +0100 [thread overview]
Message-ID: <60fd0bfe-9400-479c-a56c-8885f352af0b@pengutronix.de> (raw)
In-Reply-To: <20260113132444.3808198-1-ejo@pengutronix.de>
Hello,
On 1/13/26 2:24 PM, Enrico Jörns wrote:
> So far, if the user didn't specify a valid GPT UID, state initialization
> failed with the not so helpful error message:
>
> | ERROR: state state.of: probe failed: Invalid argument
>
> Improve this by also providing a helpful error message.
>
> Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Thanks,
Ahmad
> ---
> common/state/state.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/common/state/state.c b/common/state/state.c
> index ac6cd6e572..1c23ad4c80 100644
> --- a/common/state/state.c
> +++ b/common/state/state.c
> @@ -649,6 +649,7 @@ struct state *state_new_from_node(struct device_node *node, bool readonly)
> if (cdev_is_block_disk(cdev)) {
> cdev = cdev_find_child_by_gpt_typeuuid(cdev, &barebox_state_partition_guid);
> if (IS_ERR(cdev)) {
> + dev_err(&state->dev, "cannot find backend GPT partition by PartitionTypeGUID\n");
> ret = -EINVAL;
> goto out_release_state;
> }
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2026-01-13 13:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-13 13:24 Enrico Jörns
2026-01-13 13:27 ` Ahmad Fatoum [this message]
2026-01-13 14:14 ` 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=60fd0bfe-9400-479c-a56c-8885f352af0b@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=ejo@pengutronix.de \
/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