remzi-arpacidusseau / ostep-homework

2.1k stars 999 forks source link

file-ssd/ssd.py: Fix dump print wrongly when pages_per_block != 10 #36

Closed lamduy-nguyen closed 1 year ago

lamduy-nguyen commented 3 years ago

When argument --pages_per_block is used, and it is different from 10, the debug messages are somewhat hard to follow.

This PR fixes the mentioned issue