From f59937ad2d75b89d5e5129717f28338d26bae3c7 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 13 Dec 2016 12:00:08 +0800 Subject: [PATCH] discover/status: Add status messages for payload download results ... using the URL which is now present in the load_result. Signed-off-by: Jeremy Kerr Signed-off-by: Samuel Mendoza-Jonas --- discover/boot.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/discover/boot.c b/discover/boot.c index d259de8..82fba2f 100644 --- a/discover/boot.c +++ b/discover/boot.c @@ -309,12 +309,19 @@ static int check_load(struct boot_task *task, const char *name, { if (!result) return 0; - if (result->status != LOAD_ERROR) + + if (result->status != LOAD_ERROR) { + update_status(task->status_fn, task->status_arg, + STATUS_ERROR, + _("Loaded %s from %s"), name, + pb_url_to_string(result->url)); return 0; + } update_status(task->status_fn, task->status_arg, STATUS_ERROR, - _("Couldn't load %s"), name); + _("Couldn't load %s from %s"), name, + pb_url_to_string(result->url)); return -1; } -- 2.39.2