From: batt Date: Fri, 21 Dec 2007 21:02:14 +0000 (+0000) Subject: Typo. X-Git-Tag: 1.0.0~201 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4c312bec701f1768049e1665f84ffd45e6078586;p=bertos.git Typo. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1041 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/fs/battfs.c b/fs/battfs.c index ab8075f5..9a4275d6 100644 --- a/fs/battfs.c +++ b/fs/battfs.c @@ -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;