summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2016-12-13 12:00:08 +0800
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-20 16:40:21 +1100
commitf59937ad2d75b89d5e5129717f28338d26bae3c7 (patch)
tree4c147d13c40e9dac9c5c025f55623202dcd99ea4
parent1c3cb3b066bae9a981732d6ab868cee6df2136b4 (diff)
downloadpetitboot-f59937ad2d75b89d5e5129717f28338d26bae3c7.zip
petitboot-f59937ad2d75b89d5e5129717f28338d26bae3c7.tar.gz
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 <jk@ozlabs.org> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--discover/boot.c11
1 files 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;
}
OpenPOWER on IntegriCloud