Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs squash some compiler warnings on debug printfs b...



details:   https://anonhg.NetBSD.org/src/rev/0cda72859174
branches:  trunk
changeset: 473743:0cda72859174
user:      tls <tls%NetBSD.org@localhost>
date:      Thu Jun 17 22:22:41 1999 +0000

description:
squash some compiler warnings on debug printfs by casting to int

diffstat:

 sys/ufs/lfs/lfs_alloc.c   |  4 ++--
 sys/ufs/lfs/lfs_segment.c |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r a69a2d88cfa4 -r 0cda72859174 sys/ufs/lfs/lfs_alloc.c
--- a/sys/ufs/lfs/lfs_alloc.c   Thu Jun 17 21:09:47 1999 +0000
+++ b/sys/ufs/lfs/lfs_alloc.c   Thu Jun 17 22:22:41 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_alloc.c,v 1.22 1999/06/15 22:25:41 perseant Exp $  */
+/*     $NetBSD: lfs_alloc.c,v 1.23 1999/06/17 22:22:41 tls Exp $       */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -352,7 +352,7 @@
                LFS_SEGENTRY(sup, fs, datosn(fs, old_iaddr), bp);
 #ifdef DIAGNOSTIC
                if (sup->su_nbytes < DINODE_SIZE) {
-                       printf("lfs_vfree: negative byte count (segment %d short by %d)\n", datosn(fs, old_iaddr), DINODE_SIZE - sup->su_nbytes);
+                       printf("lfs_vfree: negative byte count (segment %d short by %d)\n", datosn(fs, old_iaddr), (int)DINODE_SIZE - sup->su_nbytes);
                        panic("lfs_vfree: negative byte count");
                        sup->su_nbytes = DINODE_SIZE;
                }
diff -r a69a2d88cfa4 -r 0cda72859174 sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Thu Jun 17 21:09:47 1999 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Thu Jun 17 22:22:41 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.27 1999/06/15 22:25:42 perseant Exp $        */
+/*     $NetBSD: lfs_segment.c,v 1.28 1999/06/17 22:22:41 tls Exp $     */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -735,7 +735,7 @@
                if (sup->su_nbytes < DINODE_SIZE) {
                        /* XXX -- Change to a panic. */
                        printf("lfs_writeinode: negative bytes (segment %d short by %d)\n",
-                              datosn(fs, daddr), DINODE_SIZE - sup->su_nbytes);
+                              datosn(fs, daddr), (int)DINODE_SIZE - sup->su_nbytes);
                        panic("lfs_writeinode: negative bytes");
                        sup->su_nbytes = DINODE_SIZE;
                }



Home | Main Index | Thread Index | Old Index