mtd/util nandwrite.c,1.6,1.7
gleixner at infradead.org
gleixner at infradead.org
Thu Mar 6 15:31:05 EST 2003
Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv17849
Modified Files:
nandwrite.c
Log Message:
calc pagelength correct, patch provided by kokseng choo
Index: nandwrite.c
===================================================================
RCS file: /home/cvs/mtd/util/nandwrite.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- nandwrite.c 20 Feb 2003 13:39:38 -0000 1.6
+++ nandwrite.c 6 Mar 2003 20:31:02 -0000 1.7
@@ -233,7 +233,7 @@
imglen = lseek(ifd, 0, SEEK_END);
lseek (ifd, 0, SEEK_SET);
- pagelen = meminfo.oobblock + (writeoob == 1) ? meminfo.oobsize : 0;
+ pagelen = meminfo.oobblock + ((writeoob == 1) ? meminfo.oobsize : 0);
// Check, if file is pagealigned
if ( (imglen % pagelen) != 0) {
More information about the linux-mtd-cvs
mailing list