[PATCH] lib: fwts_log: Add missing log field flags
Matt Fleming
matt at console-pimps.org
Wed Mar 26 09:58:27 UTC 2014
From: Matt Fleming <matt.fleming at intel.com>
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 <matt.fleming at intel.com>
---
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 }
};
--
1.8.5.3
More information about the fwts-devel
mailing list