Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/makefs/ffs Use %zd to print ssize_t (%z[uxo] for si...



details:   https://anonhg.NetBSD.org/src/rev/c05183b99030
branches:  trunk
changeset: 373889:c05183b99030
user:      kre <kre%NetBSD.org@localhost>
date:      Tue Mar 14 09:25:13 2023 +0000

description:
Use %zd to print ssize_t (%z[uxo] for size_t), rather than %jd
(just like the other adjacent printfs do)

Should fix i386 build.

diffstat:

 usr.sbin/makefs/ffs/buf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6783a590f258 -r c05183b99030 usr.sbin/makefs/ffs/buf.c
--- a/usr.sbin/makefs/ffs/buf.c Tue Mar 14 06:19:35 2023 +0000
+++ b/usr.sbin/makefs/ffs/buf.c Tue Mar 14 09:25:13 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: buf.c,v 1.26 2023/03/13 22:10:30 christos Exp $        */
+/*     $NetBSD: buf.c,v 1.27 2023/03/14 09:25:13 kre Exp $     */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: buf.c,v 1.26 2023/03/13 22:10:30 christos Exp $");
+__RCSID("$NetBSD: buf.c,v 1.27 2023/03/14 09:25:13 kre Exp $");
 #endif /* !__lint */
 
 #include <sys/param.h>
@@ -91,7 +91,7 @@
                printf("%s: read %ld (%jd) returned %zd\n", __func__,
                    (*bpp)->b_bcount, (intmax_t)offset, rv);
        if (rv == -1) {                         /* read error */
-               warn("%s: read %ld (%jd) returned %jd", __func__,
+               warn("%s: read %ld (%jd) returned %zd", __func__,
                    (*bpp)->b_bcount, (intmax_t)offset, rv);
                goto out;
        }



Home | Main Index | Thread Index | Old Index