r1842 - trunk/src/target/u-boot/patches

werner at sita.openmoko.org werner at sita.openmoko.org
Thu Apr 26 05:38:18 CEST 2007


Author: werner
Date: 2007-04-26 05:38:14 +0200 (Thu, 26 Apr 2007)
New Revision: 1842

Modified:
   trunk/src/target/u-boot/patches/nand-dynamic_partitions.patch
Log:
drivers/nand/nand_bbt.c:nand_create_mtd_dynpart: mtdparts termination was
  correct. I misunderstood what it did, sorry.



Modified: trunk/src/target/u-boot/patches/nand-dynamic_partitions.patch
===================================================================
--- trunk/src/target/u-boot/patches/nand-dynamic_partitions.patch	2007-04-26 03:01:43 UTC (rev 1841)
+++ trunk/src/target/u-boot/patches/nand-dynamic_partitions.patch	2007-04-26 03:38:14 UTC (rev 1842)
@@ -19,7 +19,7 @@
 ===================================================================
 --- u-boot.orig/drivers/nand/nand_bbt.c
 +++ u-boot/drivers/nand/nand_bbt.c
-@@ -1044,9 +1044,85 @@ int nand_isbad_bbt (struct mtd_info *mtd
+@@ -1044,9 +1044,86 @@ int nand_isbad_bbt (struct mtd_info *mtd
  	switch ((int)res) {
  	case 0x00:	return 0;
  	case 0x01:	return 1;
@@ -96,6 +96,7 @@
 +		    MTDPARTS_MAX_SIZE-strlen(mtdparts)-1);
 +	}
 +
++	mtdparts[strlen(mtdparts)-1] = '\0';
 +	printf("mtdparts %s\n", mtdparts);
 +	setenv("mtdparts", mtdparts);
 +





More information about the commitlog mailing list