Be a little more flexible with order strings
authorJeremy Kerr <jk@ozlabs.org>
Wed, 22 Nov 2006 02:32:38 +0000 (13:32 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 12 Nov 2009 23:58:45 +0000 (10:58 +1100)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
bitfield

index 5ade7af4fac6e03832e4d294cc7bae86aa14e284..3b34aeb5b7514befdd0b9edc277cec373f9997fa 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -178,6 +178,8 @@ def parse_config(bnf, regs, file):
                                                + "fields in %s") % id)
 
                                order_str = t[1].strip().lower()
+                               order_str = order_str.replace(' ', '-')
+
                                if order_str not in order_map.keys():
                                        raise ConfigurationError(file,
                                                "Invalid bit order %s in %s" % \