mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
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 <bjorn.andersson@oss.qualcomm.com>
This commit is contained in:
committed by
Bjorn Andersson
parent
44e7be00ac
commit
2d8ea742a8
6
sahara.c
6
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user