Index: tools/diag/prtblknos/prtblknos.c =================================================================== --- tools/diag/prtblknos/prtblknos.c +++ tools/diag/prtblknos/prtblknos.c @@ -97,14 +97,14 @@ printf("empty file\n"); return; } - printf("regular file, size %ld\n", size); + printf("regular file, size %jd\n", (uintmax_t)size); break; case IFDIR: if (size == 0) { printf("empty directory\n"); return; } - printf("directory, size %ld\n", size); + printf("directory, size %jd\n", (uintmax_t)size); break; } numblks = howmany(size, fs->fs_bsize);