freemyipod r606 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r605‎ | r606 | r607 >
Date:03:33, 13 February 2011
Author:farthen
Status:new
Tags:
Comment:
emCORE tools: emcore.py: getprocinfo: Improve register formatting a little bit
Modified paths:
  • /emcore/trunk/tools/emcore.py (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/emcore.py
@@ -467,10 +467,9 @@
468468 self.logger.info("Stack address: 0x%X\n" % thread.stack, 4)
469469 self.logger.info("Registers:\n", 4)
470470 for registerrange in range(4):
471 - self.logger.info(" ")
472471 for register in range(registerrange, 16, 4):
473472 registerrepr = "r"+str(register)
474 - self.logger.info("{0:3s}: 0x{1:08X} ".format(registerrepr, thread.regs[register]))
 473+ self.logger.info("{0:>3s}: 0x{1:08X} ".format(registerrepr, thread.regs[register]), 5)
475474 self.logger.info("\n")
476475 self.logger.info("cpsr: 0x{0:08X}".format(thread.cpsr), 6)
477476 self.logger.info("\n")