From c3fc4b933708a594d169e40a82d5f29f304d11c9 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 14 Apr 2012 16:21:39 +0200 Subject: nvramtool: Allow spaces in enumeration names Change-Id: Id526e74f06fb15d4692d7b6edc8b5863f2d42c50 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/901 Tested-by: build bot (Jenkins) --- util/nvramtool/accessors/layout-text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/nvramtool/accessors') diff --git a/util/nvramtool/accessors/layout-text.c b/util/nvramtool/accessors/layout-text.c index 5f7cadea97..cbe698c504 100644 --- a/util/nvramtool/accessors/layout-text.c +++ b/util/nvramtool/accessors/layout-text.c @@ -149,7 +149,7 @@ static const char enums_line_regex[] = /* followed by one or more whitespace characters */ "[[:space:]]+" /* followed by a chunk of nonwhitespace for text field */ - "([^[:space:]]+)" + "([[:print:]]*[^[:space:]])" /* followed by optional whitespace */ "[[:space:]]*$"; -- cgit v1.2.3