Index: emcore/trunk/tools/libemcore.py |
— | — | @@ -693,9 +693,8 @@ |
694 | 694 | self.logger.debug("Reading %d sectors from disk at volume %d, sector %d to memory at 0x%X\n" % (count, volume, sector, addr))
|
695 | 695 | result = self.lib.monitorcommand(struct.pack("<IIQIIII", 28, volume, sector, count, addr, 0, 0), "III", ("rc", None, None))
|
696 | 696 | self.logger.debug("Read sectors, result: 0x%X\n" % result.rc)
|
697 | | - self.logger.info(".");
|
698 | | -# if result.rc > 0x80000000:
|
699 | | -# raise DeviceError("storage_read_sectors_md(volume=%d, sector=%d, count=%d, addr=0x%08X) failed with RC 0x%08X" % (volume, sector, count, addr, result.rc))
|
| 697 | + if result.rc > 0x80000000:
|
| 698 | + raise DeviceError("storage_read_sectors_md(volume=%d, sector=%d, count=%d, addr=0x%08X) failed with RC 0x%08X" % (volume, sector, count, addr, result.rc))
|
700 | 699 |
|
701 | 700 | @command(timeout = 50000)
|
702 | 701 | def storage_write_sectors_md(self, volume, sector, count, addr):
|
— | — | @@ -703,9 +702,8 @@ |
704 | 703 | self.logger.debug("Writing %d sectors from memory at 0x%X to disk at volume %d, sector %d\n" % (count, addr, volume, sector))
|
705 | 704 | result = self.lib.monitorcommand(struct.pack("<IIQIIII", 29, volume, sector, count, addr, 0, 0), "III", ("rc", None, None))
|
706 | 705 | self.logger.debug("Wrote sectors, result: 0x%X\n" % result.rc)
|
707 | | - self.logger.info(".");
|
708 | | -# if result.rc > 0x80000000:
|
709 | | -# raise DeviceError("storage_write_sectors_md(volume=%d, sector=%d, count=%d, addr=0x%08X) failed with RC 0x%08X" % (volume, sector, count, addr, result.rc))
|
| 706 | + if result.rc > 0x80000000:
|
| 707 | + raise DeviceError("storage_write_sectors_md(volume=%d, sector=%d, count=%d, addr=0x%08X) failed with RC 0x%08X" % (volume, sector, count, addr, result.rc))
|
710 | 708 |
|
711 | 709 | @command(timeout = 30000)
|
712 | 710 | def fat_enable_flushing(self, state):
|