From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 27 Jan 2026 13:14:18 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkhxa-005tMm-1w for lore@lore.pengutronix.de; Tue, 27 Jan 2026 13:14:18 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vkhxX-0001Hs-TP; Tue, 27 Jan 2026 13:14:15 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vkhxV-0001GY-Qf for oss-tools@pengutronix.de; Tue, 27 Jan 2026 13:14:13 +0100 Received: from dude06.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::5c]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkhxW-002k9g-0t for oss-tools@pengutronix.de; Tue, 27 Jan 2026 13:14:13 +0100 Received: from ejo by dude06.red.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1vkhxV-0000000Enxr-2Jnl for oss-tools@pengutronix.de; Tue, 27 Jan 2026 13:14:13 +0100 From: =?UTF-8?q?Enrico=20J=C3=B6rns?= To: oss-tools@pengutronix.de Date: Tue, 27 Jan 2026 13:12:58 +0100 Message-ID: <20260127121322.3332573-2-ejo@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260127121322.3332573-1-ejo@pengutronix.de> References: <20260127121322.3332573-1-ejo@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [OSS-Tools] [PATCH dt-utils 2/5] state: helpful error message if state GUID cannot be found X-BeenThere: oss-tools@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "OSS-Tools" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: oss-tools-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Port of barebox commit: | state: helpful error message if state GUID cannot be found | | 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 | Reviewed-by: Ahmad Fatoum | Link: https://lore.barebox.org/20260113132444.3808198-1-ejo@pengutronix.de | Signed-off-by: Sascha Hauer Signed-off-by: Enrico Jörns --- src/barebox-state/state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/barebox-state/state.c b/src/barebox-state/state.c index 3b02624..851f595 100644 --- a/src/barebox-state/state.c +++ b/src/barebox-state/state.c @@ -646,6 +646,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; } -- 2.47.3