소스 검색

fix bug in uffs_result_to_dfs, that UENOMEM is corresponding with DFS_STATUS_ENOSPC

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2026 bbd45198-f89e-11dd-88c7-29a3b14d5316
goprife@gmail.com 13 년 전
부모
커밋
7f98c2e5e9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/dfs/filesystems/uffs/dfs_uffs.c

+ 1 - 1
components/dfs/filesystems/uffs/dfs_uffs.c

@@ -76,7 +76,7 @@ static int uffs_result_to_dfs(int result)
 		status = -DFS_STATUS_EBADF;
 		break;
 	case UENOMEM:/** no enough memory */
-		status = -DFS_STATUS_ENOMEM;
+		status = -DFS_STATUS_ENOSPC;
 		break;
 	case UEIOERR: /** I/O error from lower level flash operation */
 		status = -DFS_STATUS_EIO;