Module Name:    src
Committed By:   kre
Date:           Tue Mar 14 09:25:13 UTC 2023

Modified Files:
        src/usr.sbin/makefs/ffs: buf.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.sbin/makefs/ffs/buf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/makefs/ffs/buf.c
diff -u src/usr.sbin/makefs/ffs/buf.c:1.26 src/usr.sbin/makefs/ffs/buf.c:1.27
--- src/usr.sbin/makefs/ffs/buf.c:1.26	Mon Mar 13 22:10:30 2023
+++ src/usr.sbin/makefs/ffs/buf.c	Tue Mar 14 09:25:13 2023
@@ -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 @@ bread(struct vnode *vp, daddr_t blkno, i
 		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;
 	}

Reply via email to