Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/ofppc/ofppc fix some printf formats in DIAGNOSTIC c...
details: https://anonhg.NetBSD.org/src/rev/1180bd10c2b4
branches: trunk
changeset: 351917:1180bd10c2b4
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Mar 05 22:14:51 2017 +0000
description:
fix some printf formats in DIAGNOSTIC code.
diffstat:
sys/arch/ofppc/ofppc/disksubr.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diffs (59 lines):
diff -r aa9e4fc38b93 -r 1180bd10c2b4 sys/arch/ofppc/ofppc/disksubr.c
--- a/sys/arch/ofppc/ofppc/disksubr.c Sun Mar 05 20:45:49 2017 +0000
+++ b/sys/arch/ofppc/ofppc/disksubr.c Sun Mar 05 22:14:51 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.26 2015/07/04 06:14:41 maxv Exp $ */
+/* $NetBSD: disksubr.c,v 1.27 2017/03/05 22:14:51 mrg Exp $ */
/*-
* Copyright (c) 2010 Frank Wille.
@@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.26 2015/07/04 06:14:41 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.27 2017/03/05 22:14:51 mrg Exp $");
#include "opt_disksubr.h"
@@ -337,12 +337,12 @@
lp->d_secpercyl = lp->d_nsectors * lp->d_ntracks;
#ifdef DIAGNOSTIC
if (lp->d_ncylinders != rbp->ncylinders)
- printf("warning found rdb->ncylinders(%ld) != "
- "rdb->highcyl(%ld) + 1\n", rbp->ncylinders,
+ printf("warning found rdb->ncylinders(%u) != "
+ "rdb->highcyl(%u) + 1\n", rbp->ncylinders,
rbp->highcyl);
if (lp->d_nsectors * lp->d_ntracks != rbp->secpercyl)
- printf("warning found rdb->secpercyl(%ld) != "
- "rdb->nsectors(%ld) * rdb->nheads(%ld)\n", rbp->secpercyl,
+ printf("warning found rdb->secpercyl(%u) != "
+ "rdb->nsectors(%u) * rdb->nheads(%u)\n", rbp->secpercyl,
rbp->nsectors, rbp->nheads);
#endif
lp->d_sparespercyl =
@@ -354,8 +354,8 @@
lp->d_sparespertrack = lp->d_sparespercyl / lp->d_ntracks;
#ifdef DIAGNOSTIC
if (lp->d_sparespercyl % lp->d_ntracks)
- printf("warning lp->d_sparespercyl(%d) not multiple "
- "of lp->d_ntracks(%d)\n", lp->d_sparespercyl,
+ printf("warning lp->d_sparespercyl(%u) not multiple "
+ "of lp->d_ntracks(%u)\n", lp->d_sparespercyl,
lp->d_ntracks);
#endif
}
@@ -466,10 +466,10 @@
pbp->partname[pbp->partname[0] + 1] = 0;
else
pbp->partname[sizeof(pbp->partname) - 1] = 0;
- printf("Partition '%s' geometry %ld/%ld differs",
+ printf("Partition '%s' geometry %u/%u differs",
pbp->partname + 1, pbp->e.numheads,
pbp->e.secpertrk);
- printf(" from RDB %d/%d=%d\n", lp->d_ntracks,
+ printf(" from RDB %u/%u=%u\n", lp->d_ntracks,
lp->d_nsectors, lp->d_secpercyl);
}
#endif
Home |
Main Index |
Thread Index |
Old Index