Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/pdisk Fix a format string error clang found.



details:   https://anonhg.NetBSD.org/src/rev/1fa061e9e584
branches:  trunk
changeset: 778694:1fa061e9e584
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Apr 08 17:04:19 2012 +0000

description:
Fix a format string error clang found.

diffstat:

 dist/pdisk/pdisk.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5f0a097ab343 -r 1fa061e9e584 dist/pdisk/pdisk.c
--- a/dist/pdisk/pdisk.c        Sun Apr 08 17:04:07 2012 +0000
+++ b/dist/pdisk/pdisk.c        Sun Apr 08 17:04:19 2012 +0000
@@ -167,12 +167,12 @@
     init_program_name(argv);
 
     if (sizeof(DPME) != PBLOCK_SIZE) {
-       fatal(-1, "Size of partition map entry (%d) "
+       fatal(-1, "Size of partition map entry (%lu) "
                "is not equal to block size (%d)\n",
                sizeof(DPME), PBLOCK_SIZE);
     }
     if (sizeof(Block0) != PBLOCK_SIZE) {
-       fatal(-1, "Size of block zero structure (%d) "
+       fatal(-1, "Size of block zero structure (%lu) "
                "is not equal to block size (%d)\n",
                sizeof(Block0), PBLOCK_SIZE);
     }



Home | Main Index | Thread Index | Old Index