yaffs: Fix typo in mkyaffsimage
authorCharles Manning <cdhmanning@gmail.com>
Tue, 28 Jun 2011 01:46:33 +0000 (13:46 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Tue, 28 Jun 2011 01:46:33 +0000 (13:46 +1200)
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
utils/mkyaffsimage.c

index 49636b1..5dbe51a 100644 (file)
@@ -132,8 +132,8 @@ static u16 yaffs_calc_name_sum(const char *name)
 
 static void yaffs_calc_ecc(const u8 *data, struct yaffs_spare *spare)
 {
-       yaffs_ecc_cacl(data , spare->ecc1);
-       yaffs_ecc_cacl(&data[256] , spare->ecc2);
+       yaffs_ecc_calc(data , spare->ecc1);
+       yaffs_ecc_calc(&data[256] , spare->ecc2);
 }
 
 static void yaffs_calc_tags_ecc(struct yaffs_tags *tags)