summaryrefslogtreecommitdiffstats
path: root/discover/pxe-parser.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2016-12-07 11:43:08 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-20 15:04:26 +1100
commitc5ae6f4846ca4bd8e13ffa08a293950433f3096c (patch)
tree51fcbd90ce451b6b09d6162b975d6eb349efcea3 /discover/pxe-parser.c
parent685fc9d70bb5f09ef345ea0f3d8c3422fd77d611 (diff)
downloadtalos-petitboot-c5ae6f4846ca4bd8e13ffa08a293950433f3096c.tar.gz
talos-petitboot-c5ae6f4846ca4bd8e13ffa08a293950433f3096c.zip
discover: separate status-reporting function from boot() callback
Currently, the device_discover_boot_status function is both used for internal status updates, as well as the callback passed to boot(). This change splits this into two functions; one for the latter and one for the former. The latter just has a void * for its first argument, to match the boot_status_fn type. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/pxe-parser.c')
-rw-r--r--discover/pxe-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/pxe-parser.c b/discover/pxe-parser.c
index 221fc30..a044215 100644
--- a/discover/pxe-parser.c
+++ b/discover/pxe-parser.c
@@ -286,7 +286,7 @@ static void pxe_conf_parse_cb(struct load_url_result *result, void *data)
*/
status.message = talloc_asprintf(conf, _("pxe: parsed config for %s"),
conf->dc->conf_url->host);
- device_handler_boot_status(handler, &status);
+ device_handler_status(handler, &status);
talloc_free(buf);
out_clean:
OpenPOWER on IntegriCloud