Removed some debug prints

This commit is contained in:
Rob McMullen 2019-03-08 10:34:55 -08:00
parent 282ec20bdd
commit cb9f592762
6 changed files with 5 additions and 9 deletions

View File

@ -328,7 +328,6 @@ class AtariDosFile(Bootable):
segment_cls = RunAddressSegment
else:
segment_cls = ObjSegment
print(start, end, segment_cls)
self.segments.append(segment_cls(r[pos + 4:pos + 4 + count], pos, pos + 4, start, end))
pos += 4 + count
style_pos = pos

View File

@ -262,7 +262,6 @@ class BaseAtariCartImage(DiskImageBase):
return segments
def create_emulator_boot_segment(self):
print(self.segments)
h = self.header
k, rem = divmod(len(self), 1024)
if rem == 0:
@ -335,7 +334,6 @@ class RomImage(DiskImageBase):
self.segments = [s]
def create_emulator_boot_segment(self):
print(self.segments)
s = self.segments[0]
if s.origin == 0:
return None

View File

@ -96,7 +96,7 @@ def get_bsave(segments, run_addr=None):
words[1] = size
for s in all_segments:
index = s.origin - origin + 4
print("setting data for $%04x - $%04x at index $%04x" % (s.origin, s.origin + len(s), index))
log.debug("setting data for $%04x - $%04x at index $%04x" % (s.origin, s.origin + len(s), index))
image[index:index + len(s)] = s.data
return image

View File

@ -15,9 +15,9 @@ def identify_mime(header, fh):
try:
parser, mime_type = find_diskimage_from_data(data, True)
except (errors.UnsupportedContainer, errors.UnsupportedDiskImage, IOError) as e:
print(f"error in atrcopy parser: {e}")
log.debug(f"error in atrcopy parser: {e}")
else:
print(f"{parser.image}: {mime_type}")
log.debug(f"{parser.image}: {mime_type}")
if mime_type:
log.debug(f"atrcopy loader: identified {mime_type}")

View File

@ -230,7 +230,6 @@ def guess_parser_by_size(r, verbose=False):
mime = None
size = len(r)
if size in sha1_signatures:
print(r)
sha_hash = hashlib.sha1(r.data).digest()
log.info(f"{size} in signature database, attempting to match {sha_hash}")
try:

View File

@ -76,7 +76,7 @@ class BSAVESaver:
header = np.empty(2, dtype="<u2")
header[0] = segment.origin
header[1] = len(data)
print("binary data: %x bytes at %x" % (header[1], header[0]))
log.debug("binary data: %x bytes at %x" % (header[1], header[0]))
return header.tobytes() + segment.tobytes()
@ -523,7 +523,7 @@ class DefaultSegment:
"""
if hasattr(self, 'start_addr'):
self.origin = self.start_addr
print(f"moving start_addr to origin: {self.start_addr}")
log.debug(f"moving start_addr to origin: {self.start_addr}")
delattr(self, 'start_addr')
def reconstruct_raw(self, rawdata):