Clean up debug print statements

This commit is contained in:
Joshua Boniface 2024-09-30 03:51:39 -04:00
parent b19642aa2e
commit 7fac7a62cf
1 changed files with 1 additions and 6 deletions

View File

@ -1382,16 +1382,11 @@ def vm_snapshot_receive_block_diff(
chunk = stream.read() chunk = stream.read()
print(type(chunk))
print(len(chunk))
# Extract the offset and length (8 bytes each) and the data # Extract the offset and length (8 bytes each) and the data
offset = int.from_bytes(chunk[:8], "big") offset = int.from_bytes(chunk[:8], "big")
length = int.from_bytes(chunk[8:16], "big") length = int.from_bytes(chunk[8:16], "big")
data = chunk[16 : 16 + length] data = chunk[16 : 16 + length]
print(f"Writing {length} bytes to {offset}") image.write(data, offset)
written = image.write(data, offset)
print(f"Wrote {written} bytes")
image.close() image.close()
ioctx.close() ioctx.close()