Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Fix a printf format warning.



details:   https://anonhg.NetBSD.org/src/rev/3e1f2a25f699
branches:  trunk
changeset: 533692:3e1f2a25f699
user:      briggs <briggs%NetBSD.org@localhost>
date:      Sun Jul 07 14:29:06 2002 +0000

description:
Fix a printf format warning.

diffstat:

 sys/ufs/lfs/lfs_syscalls.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r d4a9ab85e188 -r 3e1f2a25f699 sys/ufs/lfs/lfs_syscalls.c
--- a/sys/ufs/lfs/lfs_syscalls.c        Sun Jul 07 13:25:43 2002 +0000
+++ b/sys/ufs/lfs/lfs_syscalls.c        Sun Jul 07 14:29:06 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_syscalls.c,v 1.69 2002/07/06 01:30:14 perseant Exp $       */
+/*     $NetBSD: lfs_syscalls.c,v 1.70 2002/07/07 14:29:06 briggs Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_syscalls.c,v 1.69 2002/07/06 01:30:14 perseant Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_syscalls.c,v 1.70 2002/07/07 14:29:06 briggs Exp $");
 
 #define LFS            /* for prototypes in syscallargs.h */
 
@@ -461,9 +461,9 @@
                        obsize = ip->i_lfs_fragsize[blkp->bi_lbn];
                }
                if (obsize != blkp->bi_size) {
-                       printf("lfs_markv: ino %d lbn %d wrong size (%d != %d), try again\n",
+                       printf("lfs_markv: ino %d lbn %d wrong size (%ld != %d), try again\n",
                                blkp->bi_inode, blkp->bi_lbn,
-                               obsize, blkp->bi_size);
+                               (long) obsize, blkp->bi_size);
                        do_again++;
                        continue;
                }



Home | Main Index | Thread Index | Old Index