diff options
author | Ben Pfaff <blp@ovn.org> | 2018-02-08 14:54:09 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-02-13 11:39:43 -0800 |
commit | d4b5b1bc5bf1b6940fd588247612b71225a68faa (patch) | |
tree | b4e3c159e4ded59584f9c1c8773b01db1181d635 | |
parent | b0e07d5078d9d96331c4a0db4ea931951d64c970 (diff) | |
download | openvswitch-d4b5b1bc5bf1b6940fd588247612b71225a68faa.tar.gz |
extract-ofp-errors: Minor improvements.
This removes the requirement of exactly two spaces before the error
description (now one or more is fine). It also makes an error message
clearer.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: William Tu <u9012063@gmail.com>
-rwxr-xr-x | build-aux/extract-ofp-errors | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/extract-ofp-errors b/build-aux/extract-ofp-errors index 71ae0bd5f..6c14f68b8 100755 --- a/build-aux/extract-ofp-errors +++ b/build-aux/extract-ofp-errors @@ -247,7 +247,7 @@ def extract_ofp_errors(fn): expected_errors[m.group(1)] = (fileName, lineNumber) continue - m = re.match('((?:.(?!\. ))+.)\. (.*)$', comment) + m = re.match('((?:.(?!\. ))+.)\.\s+(.*)$', comment) if not m: fatal("unexpected syntax between errors") @@ -257,7 +257,7 @@ def extract_ofp_errors(fn): m = re.match('\s+(?:OFPERR_([A-Z0-9_]+))(\s*=\s*OFPERR_OFS)?,', line) if not m: - fatal("syntax error expecting enum value") + fatal("syntax error expecting OFPERR_ enum value") enum = m.group(1) if enum in names: |