summaryrefslogtreecommitdiff
path: root/build-aux/extract-ofp-errors
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-02-12 16:24:53 -0800
committerBen Pfaff <blp@nicira.com>2013-06-12 13:32:21 -0700
commit609e778fc21d3687a3d7ab81aca1b20f1f24a3bc (patch)
tree37692e0654c000ed8e346302cee226899d6c03e1 /build-aux/extract-ofp-errors
parent9583bc14430acc0578c1d00a78143c01d9cf7bee (diff)
downloadopenvswitch-609e778fc21d3687a3d7ab81aca1b20f1f24a3bc.tar.gz
extract-ofp-errors: Remove support for hexadecimal error types.
This feature wasn't used and removing it slightly simplifies the code. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'build-aux/extract-ofp-errors')
-rwxr-xr-xbuild-aux/extract-ofp-errors10
1 files changed, 3 insertions, 7 deletions
diff --git a/build-aux/extract-ofp-errors b/build-aux/extract-ofp-errors
index 965e322c4..32d0913c4 100755
--- a/build-aux/extract-ofp-errors
+++ b/build-aux/extract-ofp-errors
@@ -212,17 +212,13 @@ def extract_ofp_errors(filenames):
names.append(enum)
for dst in dsts.split(', '):
- m = re.match(r'([A-Z0-9.+]+)\((\d+|(0x)[0-9a-fA-F]+)(?:,(\d+))?\)$', dst)
+ m = re.match(r'([A-Z0-9.+]+)\((\d+)(?:,(\d+))?\)$', dst)
if not m:
fatal("%s: syntax error in destination" % dst)
targets = m.group(1)
+ type_ = int(m.group(2))
if m.group(3):
- base = 16
- else:
- base = 10
- type_ = int(m.group(2), base)
- if m.group(4):
- code = int(m.group(4))
+ code = int(m.group(3))
else:
code = None