Don't list regs when none is found
authorJeremy Kerr <jk@ozlabs.org>
Sun, 19 Nov 2006 11:21:45 +0000 (22:21 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 12 Nov 2009 23:58:38 +0000 (10:58 +1100)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
bitfield

index 4962e57f2bfd7ed8aeb54b1e3e911a738398dab6..1152067ebe1199c703779f8c6c61ff1afbe9da3e 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -257,8 +257,7 @@ def main():
 
        reg_id = args.pop(0)
        if not regs.has_key(reg_id):
 
        reg_id = args.pop(0)
        if not regs.has_key(reg_id):
-               print "No such register '%s'. Valid regs are:" % reg_id
-               list_regs(regs)
+               print "No such register '%s'" % reg_id
                return 1
 
        r = regs[reg_id]
                return 1
 
        r = regs[reg_id]