diff options
author | Brian Norris <computersforpeace@gmail.com> | 2010-11-10 22:39:14 -0800 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-11-13 13:55:44 +0200 |
commit | c1a7889da754dfac2f130772daef783980c65d5d (patch) | |
tree | f49f4ace898d4142a092faf7f3d9a9ab209c506e | |
parent | 15d811481cf1cf61ae23fabbd1e191ebdbcf3881 (diff) |
mtd-utils: nandwrite: type consistency
Change type off "offs" for type consistency of 64-bit data types. The
"loff_t" type is no longer needed for the MEMGETBADBLOCK ioctl since
it isn't called dirently anymore - this is handled by mtd_is_bad().
Also change an accompanying printf().
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r-- | nandwrite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nandwrite.c b/nandwrite.c index 00e7c28..bbe69b0 100644 --- a/nandwrite.c +++ b/nandwrite.c @@ -261,7 +261,7 @@ int main(int argc, char * const argv[]) bool baderaseblock = false; long long blockstart = -1; struct mtd_dev_info mtd; - loff_t offs; + long long offs; int ret; int oobinfochanged = 0; struct nand_oobinfo old_oobinfo; @@ -494,9 +494,9 @@ int main(int argc, char * const argv[]) } else if (ret == 1) { baderaseblock = true; if (!quiet) - fprintf(stderr, "Bad block at %x, %u block(s) " + fprintf(stderr, "Bad block at %llx, %u block(s) " "from %llx will be skipped\n", - (int) offs, blockalign, blockstart); + offs, blockalign, blockstart); } if (baderaseblock) { |