From patchwork Mon Dec 19 04:19:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Mendoza-Jonas X-Patchwork-Id: 706927 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3thnm30H47z9s65 for ; Mon, 19 Dec 2016 15:21:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="a1BwD93a"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3thnm26KhJzDwJ9 for ; Mon, 19 Dec 2016 15:21:06 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="a1BwD93a"; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Received: from mendozajonas.com (mendozajonas.com [188.166.185.233]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3thnkk3WQDzDwHl for ; Mon, 19 Dec 2016 15:19:58 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="a1BwD93a"; dkim-atps=neutral Received: from skellige.ozlabs.ibm.com (unknown [122.99.82.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: sam@mendozajonas.com) by mendozajonas.com (Postfix) with ESMTPSA id D6677143F6E; Mon, 19 Dec 2016 12:19:54 +0800 (SGT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mendozajonas.com; s=mail; t=1482121195; bh=RIwUOK2+xS/YtMR1IwxeOqfviBA7JHdHvk66IOh/xqw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a1BwD93aeZhhuusBRNHykYRh90izvdo3V6S1EamrGkDrhmhiS75qCFJ6yaFPbS1jn qbQZf+K8uE6JMhu5eQMxspFzNMRVzplJF0L90iVp9Nj7wn1sboJ8uGQgWcs/ZRCRf+ RRW/bjwzS6SvZsGbWmuQHECQCAuAWxVVydeIhK2g= From: Samuel Mendoza-Jonas To: petitboot@lists.ozlabs.org Subject: [PATCH 18/29] discover/status: Add parse status for GRUB2, yaboot & kboot parsers Date: Mon, 19 Dec 2016 15:19:04 +1100 Message-Id: <20161219041915.30497-19-sam@mendozajonas.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161219041915.30497-1-sam@mendozajonas.com> References: <20161219041915.30497-1-sam@mendozajonas.com> X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Mendoza-Jonas MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" From: Jeremy Kerr Signed-off-by: Jeremy Kerr Signed-off-by: Samuel Mendoza-Jonas --- discover/grub2/grub2.c | 4 ++++ discover/kboot-parser.c | 4 ++++ discover/yaboot-parser.c | 4 ++++ 3 files changed, 12 insertions(+) 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); }