소스 검색

fix assert msg

Corentin Salingue 12 년 전
부모
커밋
334573c0b7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/core/disk.c

+ 2 - 2
src/core/disk.c

@@ -281,7 +281,7 @@ static ssize_t
 starpu_stdio_read (void *base, void *obj, void *buf, off_t offset, size_t size)
 {
 	struct starpu_stdio_obj * tmp = (struct starpu_stdio_obj *) obj;
-
+	
 	int res = fseek(tmp->file, offset, SEEK_SET); 
 	STARPU_ASSERT_MSG(res == 0, "Stdio read failed");
 
@@ -297,7 +297,7 @@ starpu_stdio_write (void *base, void *obj, const void *buf, off_t offset, size_t
 	struct starpu_stdio_obj * tmp = (struct starpu_stdio_obj *) obj;
 
 	int res = fseek(tmp->file, offset, SEEK_SET); 
-	STARPU_ASSERT_MSG(res == 0, "Stdio read failed");
+	STARPU_ASSERT_MSG(res == 0, "Stdio write failed");
 
 	ssize_t nb = fwrite (buf, 1, size, tmp->file);