Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/msdosfs A little more debugging.
details: https://anonhg.NetBSD.org/src/rev/a60878c0d590
branches: trunk
changeset: 784410:a60878c0d590
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 28 00:17:18 2013 +0000
description:
A little more debugging.
diffstat:
sys/fs/msdosfs/msdosfs_fat.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (45 lines):
diff -r 2974e8004397 -r a60878c0d590 sys/fs/msdosfs/msdosfs_fat.c
--- a/sys/fs/msdosfs/msdosfs_fat.c Mon Jan 28 00:16:48 2013 +0000
+++ b/sys/fs/msdosfs/msdosfs_fat.c Mon Jan 28 00:17:18 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfs_fat.c,v 1.27 2013/01/27 22:04:19 christos Exp $ */
+/* $NetBSD: msdosfs_fat.c,v 1.28 2013/01/28 00:17:18 christos Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -52,7 +52,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_fat.c,v 1.27 2013/01/27 22:04:19 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_fat.c,v 1.28 2013/01/28 00:17:18 christos Exp $");
/*
* kernel include files.
@@ -147,6 +147,8 @@
* pmp->pm_BytesPerSec;
bn += pmp->pm_fatblk + pmp->pm_curfat * pmp->pm_FATsecs;
+ DPRINTF(("%s(ofs=%lu bn=%lu, size=%lu, bo=%lu)\n", __func__, ofs, bn,
+ size, ofs % pmp->pm_fatblocksize));
if (bnp)
*bnp = bn;
if (sizep)
@@ -154,7 +156,7 @@
if (bop)
*bop = ofs % pmp->pm_fatblocksize;
- pm_fatblocksize = pmp->pm_fatblocksize;
+ pm_fatblocksize = pmp->pm_fatblocksize;
}
/*
@@ -299,6 +301,8 @@
cn = getushort((char *)bp->b_data + bo);
if (FAT12(pmp) && (prevcn & 1))
cn >>= 4;
+ DPRINTF(("%s(cn=%lu masked=%lu)\n", __func__, cn,
+ cn & pmp->pm_fatmask));
cn &= pmp->pm_fatmask;
}
Home |
Main Index |
Thread Index |
Old Index