[PATCH 20/29] discover/status: Add status messages for payload download results
Samuel Mendoza-Jonas
sam at mendozajonas.com
Mon Dec 19 15:19:06 AEDT 2016
From: Jeremy Kerr <jk at ozlabs.org>
... using the URL which is now present in the load_result.
Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>
---
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.10.2
More information about the Petitboot
mailing list