Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sbin/newfs_lfs Pull up revision 1.20 (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/9d383c159fe8
branches:  netbsd-1-4
changeset: 471011:9d383c159fe8
user:      he <he%NetBSD.org@localhost>
date:      Wed Oct 11 21:03:12 2000 +0000

description:
Pull up revision 1.20 (requested by he):
  Format string cleanup.

diffstat:

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

diffs (28 lines):

diff -r 503fc7804b9d -r 9d383c159fe8 sbin/newfs_lfs/lfs.c
--- a/sbin/newfs_lfs/lfs.c      Wed Oct 11 20:28:56 2000 +0000
+++ b/sbin/newfs_lfs/lfs.c      Wed Oct 11 21:03:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs.c,v 1.3.2.2 1999/09/05 14:57:34 he Exp $   */
+/*     $NetBSD: lfs.c,v 1.3.2.3 2000/10/11 21:03:12 he 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.3.2.2 1999/09/05 14:57:34 he Exp $");
+__RCSID("$NetBSD: lfs.c,v 1.3.2.3 2000/10/11 21:03:12 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -668,7 +668,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