Typo.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 21 Dec 2007 21:02:14 +0000 (21:02 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 21 Dec 2007 21:02:14 +0000 (21:02 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1041 38d2e660-2303-0410-9eaa-f027e97ec537

fs/battfs.c

index ab8075f5146b430cd4ee759ec159754ab80f2bff..9a4275d672628869a9344ed73ba7ca9d3c215688 100644 (file)
@@ -178,8 +178,8 @@ static void movePages(struct BattFsSuper *disk, pgcnt_t src, int offset)
  */
 static void insertFreePage(struct BattFsSuper *disk, pgoff_t *filelen_table, mark_t free_number, pgcnt_t page)
 {
-       ASSERT(mark >= disk->min_free);
-       ASSERT(mark <= disk->max_free);
+       ASSERT(free_number >= disk->min_free);
+       ASSERT(free_number <= disk->max_free);
 
        pgcnt_t free_pos = countPages(filelen_table, BATTFS_MAX_FILES - 1);
        free_pos += free_number - disk->min_free;