Fix non-zero option handling
authorJeremy Kerr <jk@ozlabs.org>
Sun, 19 Nov 2006 12:19:16 +0000 (23:19 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 12 Nov 2009 23:58:41 +0000 (10:58 +1100)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
bitfield

index c70c6c6af86f2682906936f7d5338245031eb87d..8aab6f8b617bd868264f50f12a392f4bf7c43285 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -226,7 +226,7 @@ def decode_value(reg, value, options):
                        "for %d-bit register '%s'") % (value, reg.width, reg.id)
                return
 
-       print reg.decode(i, options.has_key('non_zero'))
+       print reg.decode(i, options['non-zero'])
 
 
 def main():