summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs/msdosfs_fat.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-11-22 13:30:36 +0000
committerkib <kib@FreeBSD.org>2011-11-22 13:30:36 +0000
commitaf14be937d41261e713de94faebda1540822dc94 (patch)
tree42c5b64d65cf2ea81a191c90c8526c96283ea0c8 /sys/fs/msdosfs/msdosfs_fat.c
parent6c824ac5d833e51ebf67ed3e47e26fe2d1b4b906 (diff)
downloadFreeBSD-src-af14be937d41261e713de94faebda1540822dc94.zip
FreeBSD-src-af14be937d41261e713de94faebda1540822dc94.tar.gz
Put all the messages from msdosfs under the MSDOSFS_DEBUG ifdef.
They are confusing to user, and not informative for general consumption. MFC after: 1 week
Diffstat (limited to 'sys/fs/msdosfs/msdosfs_fat.c')
-rw-r--r--sys/fs/msdosfs/msdosfs_fat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/fs/msdosfs/msdosfs_fat.c b/sys/fs/msdosfs/msdosfs_fat.c
index c857b34..0b1899f 100644
--- a/sys/fs/msdosfs/msdosfs_fat.c
+++ b/sys/fs/msdosfs/msdosfs_fat.c
@@ -503,7 +503,9 @@ fatentry(function, pmp, cn, oldcontents, newcontents)
* Be sure they asked us to do something.
*/
if ((function & (FAT_SET | FAT_GET)) == 0) {
+#ifdef MSDOSFS_DEBUG
printf("fatentry(): function code doesn't specify get or set\n");
+#endif
return (EINVAL);
}
@@ -512,7 +514,9 @@ fatentry(function, pmp, cn, oldcontents, newcontents)
* where to put it, give them an error.
*/
if ((function & FAT_GET) && oldcontents == NULL) {
+#ifdef MSDOSFS_DEBUG
printf("fatentry(): get function with no place to put result\n");
+#endif
return (EINVAL);
}
#endif
@@ -997,7 +1001,9 @@ extendfile(dep, count, bpp, ncp, flags)
*/
if (dep->de_StartCluster == MSDOSFSROOT
&& (dep->de_Attributes & ATTR_DIRECTORY)) {
+#ifdef MSDOSFS_DEBUG
printf("extendfile(): attempt to extend root directory\n");
+#endif
return (ENOSPC);
}
OpenPOWER on IntegriCloud