Source-Changes-HG archive

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

[src/trunk]: src/sbin/ccdconfig Don't print ccd_size with %zu; it no longer h...



details:   https://anonhg.NetBSD.org/src/rev/f4a2b632549e
branches:  trunk
changeset: 331626:f4a2b632549e
user:      apb <apb%NetBSD.org@localhost>
date:      Sun Aug 17 07:05:44 2014 +0000

description:
Don't print ccd_size with %zu; it no longer has type size_t.
Instead, cast to uintmax_t and print with %ju.

diffstat:

 sbin/ccdconfig/ccdconfig.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 91b57ed2f25c -r f4a2b632549e sbin/ccdconfig/ccdconfig.c
--- a/sbin/ccdconfig/ccdconfig.c        Sun Aug 17 06:11:48 2014 +0000
+++ b/sbin/ccdconfig/ccdconfig.c        Sun Aug 17 07:05:44 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ccdconfig.c,v 1.54 2014/08/16 19:27:27 sborrill Exp $  */
+/*     $NetBSD: ccdconfig.c,v 1.55 2014/08/17 07:05:44 apb Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1996, 1997\
  The NetBSD Foundation, Inc.  All rights reserved.");
-__RCSID("$NetBSD: ccdconfig.c,v 1.54 2014/08/16 19:27:27 sborrill Exp $");
+__RCSID("$NetBSD: ccdconfig.c,v 1.55 2014/08/17 07:05:44 apb Exp $");
 #endif
 
 #include <sys/param.h>
@@ -445,8 +445,9 @@
        }
 
        /* Dump out softc information. */
-       printf("ccd%d\t\t%d\t0x%x\t%zu\t", u, ccd->ccd_ileave,
-           ccd->ccd_flags & CCDF_USERMASK, ccd->ccd_size * DEV_BSIZE);
+       printf("ccd%d\t\t%d\t0x%x\t%ju\t", u, ccd->ccd_ileave,
+           ccd->ccd_flags & CCDF_USERMASK,
+           (uintmax_t)ccd->ccd_size * DEV_BSIZE);
 
        /* Read component pathname and display component info. */
        for (size_t i = 0; i < ccd->ccd_ndisks; ++i) {



Home | Main Index | Thread Index | Old Index