From 2d8ea742a8ca14c9d33290d528e8515d5512e13d Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Mon, 26 Jan 2026 22:43:31 -0600 Subject: [PATCH] sahara: Improve error message about missing images It might not be obvious to the user that an "invalid image id" is the result of them not providing the correct programmer loaders. Make the error message more user friendly. Signed-off-by: Bjorn Andersson --- sahara.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sahara.c b/sahara.c index 4b56e81..4d6ced6 100644 --- a/sahara.c +++ b/sahara.c @@ -160,7 +160,8 @@ static void sahara_read(struct qdl_device *qdl, struct sahara_pkt *pkt, image_idx = pkt->read_req.image; if (image_idx >= MAPPING_SZ || !images[image_idx].ptr) { - ux_err("device requested invalid image: %u\n", image_idx); + ux_err("device requested unknown image id %u, ensure that all Sahara images are provided\n", + image_idx); sahara_send_reset(qdl); return; } @@ -195,7 +196,8 @@ static void sahara_read64(struct qdl_device *qdl, struct sahara_pkt *pkt, image_idx = pkt->read64_req.image; if (image_idx >= MAPPING_SZ || !images[image_idx].ptr) { - ux_err("device requested invalid image: %u\n", image_idx); + ux_err("device requested unknown image id %u, ensure that all Sahara images are provided\n", + image_idx); sahara_send_reset(qdl); return; }