X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fyaboot-parser.c;h=b06248f535f35eb0c05b3e2bf2437a1516cafbdf;hp=b62f39db7a9466a3d2da2fdd8698568d6dabedff;hb=336f4eb17fb50526ea9fda82262356581e1b9ae0;hpb=86c9d34380b0074dab1ba89a569a94280d6999c4 diff --git a/discover/yaboot-parser.c b/discover/yaboot-parser.c index b62f39d..b06248f 100644 --- a/discover/yaboot-parser.c +++ b/discover/yaboot-parser.c @@ -6,6 +6,7 @@ #include #include #include +#include #include "log/log.h" #include "talloc/talloc.h" @@ -171,6 +172,7 @@ static void yaboot_finish(struct conf_context *conf) state->opt->option->is_default = true; discover_context_add_boot_option(conf->dc, state->opt); + state->opt = NULL; } static void yaboot_process_pair(struct conf_context *conf, const char *name, @@ -380,6 +382,9 @@ static int yaboot_parse(struct discover_context *dc) continue; conf_parse_buf(conf, buf, len); + device_handler_status_dev_info(dc->handler, dc->device, + _("Parsed yaboot configuration from %s"), + *filename); talloc_free(buf); }