From: Jeremy Kerr Date: Mon, 12 Dec 2016 13:20:22 +0000 (+0800) Subject: discover/status: Add parse status for GRUB2, yaboot & kboot parsers X-Git-Tag: v1.4.0~13 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=5b33aaaaad68b890aacc3ddc4e47812a58d8c1e6;hp=c9b3a69b272a305dfc40bb4f0d5b8e3b6f6f2521;ds=sidebyside discover/status: Add parse status for GRUB2, yaboot & kboot parsers Signed-off-by: Jeremy Kerr Signed-off-by: Samuel Mendoza-Jonas --- diff --git a/discover/grub2/grub2.c b/discover/grub2/grub2.c index 5b3009a..3474616 100644 --- a/discover/grub2/grub2.c +++ b/discover/grub2/grub2.c @@ -1,6 +1,7 @@ #include #include +#include #include #include @@ -103,6 +104,9 @@ static int grub2_parse(struct discover_context *dc) parser = grub2_parser_create(dc); grub2_parser_parse(parser, *filename, buf, len); + device_handler_status_dev_info(dc->handler, dc->device, + _("Parsed GRUB configuration from %s"), + *filename); talloc_free(buf); talloc_free(parser); break; diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c index f7f75e0..bf9c5eb 100644 --- a/discover/kboot-parser.c +++ b/discover/kboot-parser.c @@ -5,6 +5,7 @@ #include #include #include +#include #include "log/log.h" #include "talloc/talloc.h" @@ -188,6 +189,9 @@ static int kboot_parse(struct discover_context *dc) continue; conf_parse_buf(conf, buf, len); + device_handler_status_dev_info(dc->handler, dc->device, + _("Parsed kboot configuration from %s"), + *filename); talloc_free(buf); } diff --git a/discover/yaboot-parser.c b/discover/yaboot-parser.c index b62f39d..42db95b 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" @@ -380,6 +381,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); }