freemyipod r485 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r484‎ | r485 | r486 >
Date:17:25, 22 January 2011
Author:theseven
Status:new
Tags:
Comment:
libemcore.py: Oops...
Modified paths:
  • /emcore/trunk/tools/libemcore.py (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/libemcore.py
@@ -628,7 +628,7 @@
629629 @command(timeout = 50000)
630630 def storage_read_sectors_md(self, volume, sector, count, addr):
631631 """ Read sectors from as storage device """
632 - self.logger.debug("Reading %d sectors from disk at volume %d, sector %d to memory at 0x%x\n" % (count, volume, sector, addr)
 632+ self.logger.debug("Reading %d sectors from disk at volume %d, sector %d to memory at 0x%x\n" % (count, volume, sector, addr))
633633 result = self.lib.monitorcommand(struct.pack("IIQIIII", 28, volume, sector, count, addr, 0, 0), "III", ("rc", None, None))
634634 self.logger.debug("Read sectors, result: 0x%x\n" % result.rc)
635635 if result.rc > 0x80000000:
@@ -637,7 +637,7 @@
638638 @command(timeout = 50000)
639639 def storage_write_sectors_md(self, volume, sector, count, addr):
640640 """ Read sectors from as storage device """
641 - self.logger.debug("Writing %d sectors from memory at 0x%x to disk at volume %d, sector %d\n" % (count, addr, volume, sector)
 641+ self.logger.debug("Writing %d sectors from memory at 0x%x to disk at volume %d, sector %d\n" % (count, addr, volume, sector))
642642 result = self.lib.monitorcommand(struct.pack("IIQIIII", 29, volume, sector, count, addr, 0, 0), "III", ("rc", None, None))
643643 self.logger.debug("Wrote sectors, result: 0x%x\n" % result.rc)
644644 if result.rc > 0x80000000: