Skip to content

Commit

Permalink
mkdisk.py: print block numbers in hex
Browse files Browse the repository at this point in the history
  • Loading branch information
meithecatte committed Mar 6, 2023
1 parent 03926b8 commit 0fa2518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def format_block(bnum, block):
else:
block = block.strip().replace(b'\n', b' ')
if len(block) > 1024:
print('Block', bnum, 'is too large - ', len(block), 'bytes')
print('Block', hex(bnum), 'is too large - ', len(block), 'bytes')
print(block[:64])
sys.exit(1)
block += b' ' * (1024 - len(block))
Expand Down

0 comments on commit 0fa2518

Please sign in to comment.