Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/pdisk print sizeof() with %zu
details: https://anonhg.NetBSD.org/src/rev/fbf986bda7b7
branches: trunk
changeset: 778699:fbf986bda7b7
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 08 21:18:46 2012 +0000
description:
print sizeof() with %zu
diffstat:
dist/pdisk/pdisk.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (22 lines):
diff -r dfad40e3a659 -r fbf986bda7b7 dist/pdisk/pdisk.c
--- a/dist/pdisk/pdisk.c Sun Apr 08 20:56:12 2012 +0000
+++ b/dist/pdisk/pdisk.c Sun Apr 08 21:18:46 2012 +0000
@@ -167,14 +167,12 @@
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",
Home |
Main Index |
Thread Index |
Old Index