]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: nandwrite: Use libmtd to get correct mtd parameters
authorBrian Norris <computersforpeace@gmail.com>
Wed, 3 Nov 2010 08:27:22 +0000 (01:27 -0700)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 13 Nov 2010 11:45:43 +0000 (13:45 +0200)
commitaf88c36dbda09ab38f274956ed3f2d1ddd62e3fb
tree0455167124a148a57f030e217ebd9ebd8093fbba
parent8532b109ee1a9b32d952dafdcd92989763db42f8
mtd-utils: nandwrite: Use libmtd to get correct mtd parameters

Begin utilizing libmtd for MTD operations: use mtd_get_dev_info() to return
a more detailed set of information about our MTD. Most importantly, libmtd
will yield a 64-bit "size" parameter. This is necessary to properly detect
devices larer than 4GB.

printf() arguments needed reformatted for the new mtd_dev_info data types.
In addition, the printf() was restructured to keep lines shorter.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
nandwrite.c