Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Let the cast to (long long) for using the result...



details:   https://anonhg.NetBSD.org/src/rev/0a68e2bdee2f
branches:  trunk
changeset: 558118:0a68e2bdee2f
user:      he <he%NetBSD.org@localhost>
date:      Wed Jan 28 20:57:15 2004 +0000

description:
Let the cast to (long long) for using the result as a printf argument
apply to the whole expression, not just the first factor.

diffstat:

 sys/ufs/lfs/lfs_vfsops.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 847f3c574b9c -r 0a68e2bdee2f sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c  Wed Jan 28 20:15:52 2004 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c  Wed Jan 28 20:57:15 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vfsops.c,v 1.142 2004/01/28 10:54:23 yamt Exp $    */
+/*     $NetBSD: lfs_vfsops.c,v 1.143 2004/01/28 20:57:15 he Exp $      */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.142 2004/01/28 10:54:23 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.143 2004/01/28 20:57:15 he Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_quota.h"
@@ -1275,7 +1275,7 @@
        if (fs->lfs_ivnode->v_size > LFS_MAX_BYTES) {
                fs->lfs_flags |= LFS_WARNED;
                printf("lfs_mountfs: please consider increasing BUFPAGES to at least %lld\n",
-                       (long long)fs->lfs_ivnode->v_size * bufpages / LFS_MAX_BYTES);
+                       (long long)(fs->lfs_ivnode->v_size * bufpages / LFS_MAX_BYTES));
        }
 
        return (0);
@@ -1365,8 +1365,8 @@
                if (fs->lfs_ivnode->v_size > LFS_MAX_BYTES)
                        printf("lfs_unmount: please consider increasing"
                                " BUFPAGES to at least %lld\n",
-                               (long long)fs->lfs_ivnode->v_size *
-                               bufpages / LFS_MAX_BYTES);
+                               (long long)(fs->lfs_ivnode->v_size *
+                               bufpages / LFS_MAX_BYTES));
        }
 
        /* Explicitly write the superblock, to update serial and pflags */



Home | Main Index | Thread Index | Old Index