summaryrefslogtreecommitdiff
path: root/components/dfs/include
diff options
context:
space:
mode:
authortangyuxin <[email protected]>2019-04-03 18:09:52 +0800
committertangyuxin <[email protected]>2019-04-08 14:51:01 +0800
commite71ec65549db94a88fac1ba7a1f110d8667fd528 (patch)
treebf37ded5b3ede720d4de17cfee444a13466596b6 /components/dfs/include
parent583f8c307329d09b236b2aa11c7a9b13a88d4654 (diff)
[components][dfs]格式化代码
Diffstat (limited to 'components/dfs/include')
-rw-r--r--components/dfs/include/dfs.h2
-rw-r--r--components/dfs/include/dfs_fs.h10
-rw-r--r--components/dfs/include/dfs_posix.h2
-rw-r--r--components/dfs/include/dfs_private.h4
4 files changed, 9 insertions, 9 deletions
diff --git a/components/dfs/include/dfs.h b/components/dfs/include/dfs.h
index 7fdcb1cfda..eb32a4b411 100644
--- a/components/dfs/include/dfs.h
+++ b/components/dfs/include/dfs.h
@@ -102,7 +102,7 @@ struct dfs_fd *fd_get(int fd);
void fd_put(struct dfs_fd *fd);
int fd_is_open(const char *pathname);
-struct dfs_fdtable* dfs_fdtable_get(void);
+struct dfs_fdtable *dfs_fdtable_get(void);
#ifdef __cplusplus
}
diff --git a/components/dfs/include/dfs_fs.h b/components/dfs/include/dfs_fs.h
index 711771a137..d3a00fc542 100644
--- a/components/dfs/include/dfs_fs.h
+++ b/components/dfs/include/dfs_fs.h
@@ -7,7 +7,7 @@
* Date Author Notes
* 2005-02-22 Bernard The first version.
*/
-
+
#ifndef __DFS_FS_H__
#define __DFS_FS_H__
@@ -60,7 +60,7 @@ struct dfs_partition
uint8_t type; /* file system type */
off_t offset; /* partition start offset */
size_t size; /* partition size */
- rt_sem_t lock;
+ rt_sem_t lock;
};
/* mount table */
@@ -75,11 +75,11 @@ struct dfs_mount_tbl
int dfs_register(const struct dfs_filesystem_ops *ops);
struct dfs_filesystem *dfs_filesystem_lookup(const char *path);
-const char* dfs_filesystem_get_mounted_path(struct rt_device* device);
+const char *dfs_filesystem_get_mounted_path(struct rt_device *device);
int dfs_filesystem_get_partition(struct dfs_partition *part,
- uint8_t *buf,
- uint32_t pindex);
+ uint8_t *buf,
+ uint32_t pindex);
int dfs_mount(const char *device_name,
const char *path,
diff --git a/components/dfs/include/dfs_posix.h b/components/dfs/include/dfs_posix.h
index bc8ff1c698..9fd76debe2 100644
--- a/components/dfs/include/dfs_posix.h
+++ b/components/dfs/include/dfs_posix.h
@@ -36,7 +36,7 @@ struct dirent *readdir(DIR *d);
long telldir(DIR *d);
void seekdir(DIR *d, off_t offset);
void rewinddir(DIR *d);
-int closedir(DIR* d);
+int closedir(DIR *d);
/* file api*/
int open(const char *file, int flags, ...);
diff --git a/components/dfs/include/dfs_private.h b/components/dfs/include/dfs_private.h
index bfc71b3b35..77dbe8562d 100644
--- a/components/dfs/include/dfs_private.h
+++ b/components/dfs/include/dfs_private.h
@@ -12,8 +12,8 @@
#include <dfs.h>
-#define DBG_SECTION_NAME "DFS"
-#define DBG_LEVEL DBG_INFO
+#define DBG_SECTION_NAME "DFS"
+#define DBG_LEVEL DBG_INFO
#include <rtdbg.h>
#define NO_WORKING_DIR "system does not support working directory\n"