Source-Changes-HG archive

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

[src/trunk]: src/sys/msdosfs msdosfs_inactive(): correct debug printf to only...



details:   https://anonhg.NetBSD.org/src/rev/39963e81d344
branches:  trunk
changeset: 481532:39963e81d344
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Feb 01 13:55:23 2000 +0000

description:
msdosfs_inactive(): correct debug printf to only claim MNT_RDONLY is set
        if it's so

diffstat:

 sys/msdosfs/msdosfs_denode.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r a5b3d79d44f0 -r 39963e81d344 sys/msdosfs/msdosfs_denode.c
--- a/sys/msdosfs/msdosfs_denode.c      Tue Feb 01 10:46:55 2000 +0000
+++ b/sys/msdosfs/msdosfs_denode.c      Tue Feb 01 13:55:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_denode.c,v 1.37 2000/02/01 10:33:18 jdolecek Exp $     */
+/*     $NetBSD: msdosfs_denode.c,v 1.38 2000/02/01 13:55:23 jdolecek Exp $     */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -620,8 +620,9 @@
         * as empty.  (This may not be necessary for the dos filesystem.)
         */
 #ifdef MSDOSFS_DEBUG
-       printf("msdosfs_inactive(): dep %p, refcnt %ld, mntflag %x, MNT_RDONLY %x\n",
-              dep, dep->de_refcnt, vp->v_mount->mnt_flag, MNT_RDONLY);
+       printf("msdosfs_inactive(): dep %p, refcnt %ld, mntflag %x %s",
+              dep, dep->de_refcnt, vp->v_mount->mnt_flag,
+               (vp->v_mount->mnt_flag & MNT_RDONLY) ? "MNT_RDONLY" : "");
 #endif
        if (dep->de_refcnt <= 0 && (vp->v_mount->mnt_flag & MNT_RDONLY) == 0) {
                error = detrunc(dep, (u_long)0, 0, NOCRED, NULL);



Home | Main Index | Thread Index | Old Index