diff options
| author | Bernard Xiong <[email protected]> | 2013-06-23 07:48:42 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-06-23 07:48:42 +0800 |
| commit | 98c8a23e9456b6a03f285245fbe9432b825e4f45 (patch) | |
| tree | acd0c83ac2d1015713a4fbc3ccb55955cdb8a868 /components/dfs/src | |
| parent | c5927f51b3dcba72aea4aca26fdb3bffb1d6f763 (diff) | |
Add component initialization.
Diffstat (limited to 'components/dfs/src')
| -rw-r--r-- | components/dfs/src/dfs.c | 3 | ||||
| -rw-r--r-- | components/dfs/src/dfs_posix.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index e1d78d398c..0cccddb0f7 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -16,7 +16,7 @@ #include <dfs_fs.h> #include <dfs_file.h> -#define NO_WORKING_DIR "system does not support working dir\n" +#define NO_WORKING_DIR "system does not support working directory\n" /* Global variables */ const struct dfs_filesystem_operation *filesystem_operation_table[DFS_FILESYSTEM_TYPES_MAX]; @@ -62,6 +62,7 @@ void dfs_init(void) working_directory[0] = '/'; #endif } +INIT_COMPONENT_EXPORT(dfs_init); /** * this function will lock device file system. diff --git a/components/dfs/src/dfs_posix.c b/components/dfs/src/dfs_posix.c index 7b650a48fa..5cb3b8ffaa 100644 --- a/components/dfs/src/dfs_posix.c +++ b/components/dfs/src/dfs_posix.c @@ -757,7 +757,7 @@ char *getcwd(char *buf, size_t size) rt_strncpy(buf, working_directory, size); rt_exit_critical(); #else - rt_kprintf("WARNING: not support working directory\n"); + rt_kprintf(NO_WORKING_DIR); #endif return buf; |
