From: Brian Norris Date: Wed, 3 Nov 2010 08:27:21 +0000 (-0700) Subject: mtd-utils: nandwrite: switch "oobsize" for "writesize" X-Git-Tag: v1.4.2~17 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8532b109ee1a9b32d952dafdcd92989763db42f8;p=mtd-utils.git mtd-utils: nandwrite: switch "oobsize" for "writesize" The text of a printf() states that we're printing OOB area, but the corresponding argument passes writesize. That probably wasn't the intent. Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy --- diff --git a/nandwrite.c b/nandwrite.c index 66a9ef7..a3ac968 100644 --- a/nandwrite.c +++ b/nandwrite.c @@ -433,7 +433,7 @@ int main(int argc, char * const argv[]) // Check, if length fits into device if (((imglen / pagelen) * meminfo.writesize) > (meminfo.size - mtdoffset)) { fprintf(stderr, "Image %d bytes, NAND page %d bytes, OOB area %u bytes, device size %u bytes\n", - imglen, pagelen, meminfo.writesize, meminfo.size); + imglen, pagelen, meminfo.oobsize, meminfo.size); perror("Input file does not fit into device"); goto closeall; }