Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sbin/newfs_lfs Pullup 1.20 [he]:



details:   https://anonhg.NetBSD.org/src/rev/79180ec60bb6
branches:  netbsd-1-5
changeset: 489739:79180ec60bb6
user:      tv <tv%NetBSD.org@localhost>
date:      Mon Oct 16 21:53:27 2000 +0000

description:
Pullup 1.20 [he]:
Format fixup.  size_t can be long, so cast to u_long and print with %ld.

diffstat:

 sbin/newfs_lfs/lfs.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 2a43c1a19fc3 -r 79180ec60bb6 sbin/newfs_lfs/lfs.c
--- a/sbin/newfs_lfs/lfs.c      Mon Oct 16 21:50:31 2000 +0000
+++ b/sbin/newfs_lfs/lfs.c      Mon Oct 16 21:53:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs.c,v 1.12.4.2 2000/09/14 18:53:20 perseant Exp $    */
+/*     $NetBSD: lfs.c,v 1.12.4.3 2000/10/16 21:53:27 tv Exp $  */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)lfs.c      8.5 (Berkeley) 5/24/95";
 #else
-__RCSID("$NetBSD: lfs.c,v 1.12.4.2 2000/09/14 18:53:20 perseant Exp $");
+__RCSID("$NetBSD: lfs.c,v 1.12.4.3 2000/10/16 21:53:27 tv Exp $");
 #endif
 #endif /* not lint */
 
@@ -744,7 +744,8 @@
        if ((wbytes = write(fd, p, len)) < 0)
                fatal("%s: write: %s", special, strerror(errno));
        if (wbytes != len)
-               fatal("%s: short write (%d, not %d)", special, wbytes, len);
+               fatal("%s: short write (%d, not %ld)", 
+                     special, wbytes, (u_long) len);
 }
 
 /*



Home | Main Index | Thread Index | Old Index