From patchwork Wed Mar 26 09:58:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Fleming X-Patchwork-Id: 333808 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id D6317140086 for ; Wed, 26 Mar 2014 20:58:43 +1100 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1WSkba-0007RJ-9W; Wed, 26 Mar 2014 09:58:42 +0000 Received: from arkanian.console-pimps.org ([212.110.184.194]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1WSkbT-0007R2-Ul for fwts-devel@lists.ubuntu.com; Wed, 26 Mar 2014 09:58:35 +0000 Received: by arkanian.console-pimps.org (Postfix, from userid 1002) id 749056C076; Wed, 26 Mar 2014 09:58:35 +0000 (GMT) Received: from localhost (unknown [94.8.38.236]) by arkanian.console-pimps.org (Postfix) with ESMTPSA id 1E67A6C050; Wed, 26 Mar 2014 09:58:32 +0000 (GMT) From: Matt Fleming To: fwts-devel@lists.ubuntu.com Subject: [PATCH] lib: fwts_log: Add missing log field flags Date: Wed, 26 Mar 2014 09:58:27 +0000 Message-Id: <1395827907-26792-1-git-send-email-matt@console-pimps.org> X-Mailer: git-send-email 1.8.5.3 Cc: Matt Fleming X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com From: Matt Fleming There are fields in the output of --log-fields that do not currently work with --log-filter. Add missing fields to fwts_log_str_to_field() so that all of the fields can be used in filtering the log. Signed-off-by: Matt Fleming Acked-by: Colin Ian King Acked-by: Ivan Hu --- src/lib/src/fwts_log.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/src/fwts_log.c b/src/lib/src/fwts_log.c index 8d9923e1153b..7eeda684db7c 100644 --- a/src/lib/src/fwts_log.c +++ b/src/lib/src/fwts_log.c @@ -233,8 +233,14 @@ fwts_log_field fwts_log_str_to_field(const char *text) { "INF", LOG_INFO }, { "SUM", LOG_SUMMARY }, { "SEP", LOG_SEPARATOR }, + { "NLN", LOG_NEWLINE }, { "ADV", LOG_ADVICE }, { "HED", LOG_HEADING }, + { "PAS", LOG_PASSED }, + { "FAL", LOG_FAILED }, + { "SKP", LOG_SKIPPED }, + { "ABT", LOG_ABORTED }, + { "INO", LOG_INFOONLY }, { "ALL", ~0 }, { NULL, 0 } };