[PATCH 09/10] mtd-utils: nanddump: type consistency
Brian Norris
computersforpeace at gmail.com
Wed Nov 3 04:27:26 EDT 2010
Change type off "offs" for type consistency of 64-bit data types.
Also change an accompanying printf().
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
nandwrite.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/nandwrite.c b/nandwrite.c
index 364acdf..a28f7fb 100644
--- a/nandwrite.c
+++ b/nandwrite.c
@@ -262,7 +262,7 @@ int main(int argc, char * const argv[])
long long blockstart = -1;
struct mtd_dev_info mtd;
struct mtd_oob_buf oob;
- loff_t offs;
+ long long offs;
int ret;
int oobinfochanged = 0;
struct nand_oobinfo old_oobinfo;
@@ -492,9 +492,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) {
--
1.7.0.4
More information about the linux-mtd
mailing list