X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=utils%2Fmkyaffs2image.c;h=548fd3a7ae07f2120fb8f2baa7706a09fba909f4;hp=31d41904234e543abcbdb9144596328ce7142251;hb=6e5a71caad2176450f764d3e359fb972b86d83e2;hpb=6f1de4473200f31d1ca1cf4672baf7afcdec2db0 diff --git a/utils/mkyaffs2image.c b/utils/mkyaffs2image.c index 31d4190..548fd3a 100644 --- a/utils/mkyaffs2image.c +++ b/utils/mkyaffs2image.c @@ -12,7 +12,6 @@ * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. - * */ /* @@ -43,7 +42,7 @@ unsigned yaffs_traceMask=0; #define chunkSize 2048 #define spareSize 64 -const char * mkyaffsimage_c_version = "$Id: mkyaffs2image.c,v 1.3 2007-02-12 16:55:27 wookey Exp $"; +const char * mkyaffsimage_c_version = "$Id: mkyaffs2image.c,v 1.5 2010-01-11 21:43:18 charles Exp $"; typedef struct @@ -183,7 +182,7 @@ static int write_chunk(__u8 *data, __u32 objId, __u32 chunkId, __u32 nBytes) nPages++; - yaffs_PackTags2(&pt,&t); + yaffs_PackTags2(&pt,&t,1); // return write(outFile,&pt,sizeof(yaffs_PackedTags2)); return write(outFile,&pt,spareSize);