Skip to content

Commit

Permalink
globals
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Oct 15, 2024
1 parent 6b19b86 commit 322eb9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test-blockdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ def do(show_stats):
global verified_t
global read_error_count
global write_error_count
global lock
global ranges
global data_total
global failure_count

Expand Down Expand Up @@ -183,7 +181,7 @@ def do(show_stats):
data = os.pread(fd, byte_count, offset)

for i in range(0, cur_n_blocks):
cur_b_offset = i * blocksize
cur_b_offset = i * blocksize
if data[cur_b_offset:cur_b_offset+blocksize] != b[i]:
if n_failed < 3:
print(f'Sector {cur_n_blocks + i} has unexpected data ({data[cur_b_offset:cur_b_offset+16]}... instead of {b[i][0:16]}...')
Expand Down

0 comments on commit 322eb9c

Please sign in to comment.