diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-08-10 16:36:33 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-08-10 16:36:33 +0000 |
commit | e296c8e33449dc121a02d0270c66e778ae140617 (patch) | |
tree | 1157bd83a201df23a82aa488dbe08d9dcb433071 /nuttx/fs | |
parent | e4f032ec91a96d59957fe29997524c9a2bb69603 (diff) | |
download | px4-nuttx-e296c8e33449dc121a02d0270c66e778ae140617.tar.gz px4-nuttx-e296c8e33449dc121a02d0270c66e778ae140617.tar.bz2 px4-nuttx-e296c8e33449dc121a02d0270c66e778ae140617.zip |
Added test for mkfatfs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@807 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r-- | nuttx/fs/fat/fs_mkfatfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/fs/fat/fs_mkfatfs.c b/nuttx/fs/fat/fs_mkfatfs.c index ce467e8ab..d9bd8fe30 100644 --- a/nuttx/fs/fat/fs_mkfatfs.c +++ b/nuttx/fs/fat/fs_mkfatfs.c @@ -209,13 +209,14 @@ int mkfatfs(FAR const char *pathname, FAR struct fat_format_s *fmt) ret = -EINVAL; goto errout; } +#endif var.fv_fattype = fmt->ff_fattype; /* The valid range off ff_clustshift is {0,1,..7} corresponding to * cluster sizes of {1,2,..128} sectors. The special value of 0xff * means that we should autoselect the cluster sizel. */ - +#ifdef CONFIG_DEBUG if (fmt->ff_clustshift > 7 && fmt->ff_clustshift != 0xff) { fdbg("Invalid cluster shift value: %d\n", fmt->ff_clustshift); |