Source-Changes-HG archive

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

[src/trunk]: src/sbin/fsck_ffs Use %zu rather than %lu to print a size_t (sho...



details:   https://anonhg.NetBSD.org/src/rev/b3b4640f12e2
branches:  trunk
changeset: 373047:b3b4640f12e2
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Jan 14 17:01:10 2023 +0000

description:
Use %zu rather than %lu to print a size_t (should fix i386 build).

But, philosophical question, shouldn't the product of two size_t
variables really be an area_t, or something like that?

diffstat:

 sbin/fsck_ffs/inode.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 29274ccaf779 -r b3b4640f12e2 sbin/fsck_ffs/inode.c
--- a/sbin/fsck_ffs/inode.c     Sat Jan 14 14:46:24 2023 +0000
+++ b/sbin/fsck_ffs/inode.c     Sat Jan 14 17:01:10 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inode.c,v 1.74 2023/01/14 12:12:50 christos Exp $      */
+/*     $NetBSD: inode.c,v 1.75 2023/01/14 17:01:10 kre Exp $   */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)inode.c    8.8 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: inode.c,v 1.74 2023/01/14 12:12:50 christos Exp $");
+__RCSID("$NetBSD: inode.c,v 1.75 2023/01/14 17:01:10 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -737,7 +737,7 @@
                        MAX(2 * inostathead[cg].il_numalloced, 10));
                info = calloc(newalloced, sizeof(*info));
                if (info == NULL) {
-                       pwarn("cannot alloc %lu bytes to extend inoinfo\n",
+                       pwarn("cannot alloc %zu bytes to extend inoinfo\n",
                                sizeof(struct inostat) * newalloced);
                        return 0;
                }



Home | Main Index | Thread Index | Old Index