Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/storage_mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static void *test_device(const char *device, int verbose, int inject_error_perce
goto error;
}
if (verbose) {
printf("%s: opened %s O_DIRECT, size=%zu\n", device, (flags & O_DIRECT)?"with":"without", devsize);
printf("%s: opened %s O_DIRECT, size=%llu\n", device, (flags & O_DIRECT)?"with":"without", devsize);
}

/* Don't fret about real randomness */
Expand Down Expand Up @@ -120,7 +120,7 @@ static void *test_device(const char *device, int verbose, int inject_error_perce
goto error;
}
if (res < (int)sizeof(buffer)) {
fprintf(stderr, "Failed to read %ld bytes from %s, got %d\n", sizeof(buffer), device, res);
fprintf(stderr, "Failed to read %zd bytes from %s, got %d\n", sizeof(buffer), device, res);
goto error;
}
}
Expand Down