Module Name: src
Committed By: christos
Date: Sun Apr 8 21:18:46 UTC 2012
Modified Files:
src/dist/pdisk: pdisk.c
Log Message:
print sizeof() with %zu
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/dist/pdisk/pdisk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/pdisk/pdisk.c
diff -u src/dist/pdisk/pdisk.c:1.22 src/dist/pdisk/pdisk.c:1.23
--- src/dist/pdisk/pdisk.c:1.22 Sun Apr 8 16:41:18 2012
+++ src/dist/pdisk/pdisk.c Sun Apr 8 17:18:46 2012
@@ -167,14 +167,12 @@ main(int argc, char **argv)
init_program_name(argv);
if (sizeof(DPME) != PBLOCK_SIZE) {
- fatal(-1, "Size of partition map entry (%lu) "
- "is not equal to block size (%d)\n",
- (unsigned long)sizeof(DPME), PBLOCK_SIZE);
+ fatal(-1, "Size of partition map entry (%zu) "
+ "is not equal to block size (%d)\n", sizeof(DPME), PBLOCK_SIZE);
}
if (sizeof(Block0) != PBLOCK_SIZE) {
- fatal(-1, "Size of block zero structure (%lu) "
- "is not equal to block size (%d)\n",
- (unsigned long)sizeof(Block0), PBLOCK_SIZE);
+ fatal(-1, "Size of block zero structure (%zu) "
+ "is not equal to block size (%d)\n", sizeof(Block0), PBLOCK_SIZE);
}
if (strcmp(VERSION, get_version_string()) != 0) {
fatal(-1, "Version string static form (%s) does not match dynamic form (%s)\n",