diff options
author | Brian Norris <computersforpeace@gmail.com> | 2010-11-03 01:27:21 -0700 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-11-13 13:43:25 +0200 |
commit | 8532b109ee1a9b32d952dafdcd92989763db42f8 (patch) | |
tree | 5c4d2264f6b1a5e1290b894bb90bc2f20ffb911f | |
parent | 1bbaf1e86a75cdafc4b445db6b9a6d60322b928e (diff) |
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 <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r-- | nandwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |