Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ext2fs Make DEBUG_EXT2 work with 64-bit size_t.



details:   https://anonhg.NetBSD.org/src/rev/7cbc215955c6
branches:  trunk
changeset: 756640:7cbc215955c6
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Tue Jul 27 05:15:56 2010 +0000

description:
Make DEBUG_EXT2 work with 64-bit size_t.

diffstat:

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

diffs (36 lines):

diff -r 905b967b3f6e -r 7cbc215955c6 sys/ufs/ext2fs/ext2fs_vfsops.c
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c    Tue Jul 27 05:11:32 2010 +0000
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c    Tue Jul 27 05:15:56 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs_vfsops.c,v 1.158 2010/07/21 17:52:13 hannken Exp $      */
+/*     $NetBSD: ext2fs_vfsops.c,v 1.159 2010/07/27 05:15:56 jakllsch Exp $     */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1994
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.158 2010/07/21 17:52:13 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.159 2010/07/27 05:15:56 jakllsch Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -682,7 +682,7 @@
        ump = NULL;
 
 #ifdef DEBUG_EXT2
-       printf("ext2 sb size: %d\n", sizeof(struct ext2fs));
+       printf("ext2 sb size: %zu\n", sizeof(struct ext2fs));
 #endif
        error = bread(devvp, SBLOCK, SBSIZE, cred, 0, &bp);
        if (error)
@@ -704,7 +704,7 @@
        m_fs->e2fs_ronly = ronly;
 
 #ifdef DEBUG_EXT2
-       printf("ext2 ino size %d\n", EXT2_DINODE_SIZE(m_fs));
+       printf("ext2 ino size %zu\n", EXT2_DINODE_SIZE(m_fs));
 #endif
        if (ronly == 0) {
                if (m_fs->e2fs.e2fs_state == E2FS_ISCLEAN)



Home | Main Index | Thread Index | Old Index