Don't list regs when none is found
[bitfield] / 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):
-               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]