From 15f5f89995de6f10a5dc7b30ebf87d856c4e1127 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Mon, 27 Jun 2011 11:27:20 -0700 Subject: mtd-utils: remove whitespace at end of lines Signed-off-by: Brian Norris Acked-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- nandtest.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'nandtest.c') diff --git a/nandtest.c b/nandtest.c index 93f01ca..d03dc11 100644 --- a/nandtest.c +++ b/nandtest.c @@ -79,7 +79,7 @@ int erase_and_write(loff_t ofs, unsigned char *data, unsigned char *rbuf) printf("\r%08x: reading...", (unsigned)ofs); fflush(stdout); - + len = pread(fd, rbuf, meminfo.erasesize, ofs); if (len < meminfo.erasesize) { printf("\n"); @@ -89,7 +89,7 @@ int erase_and_write(loff_t ofs, unsigned char *data, unsigned char *rbuf) perror("read"); exit(1); } - + if (ioctl(fd, ECCGETSTATS, &newstats)) { printf("\n"); perror("ECCGETSTATS"); @@ -184,7 +184,7 @@ int main(int argc, char **argv) case 'l': length = strtol(optarg, NULL, 0); break; - + } } if (argc - optind != 1) @@ -195,7 +195,7 @@ int main(int argc, char **argv) perror("open"); exit(1); } - + if (ioctl(fd, MEMGETINFO, &meminfo)) { perror("MEMGETINFO"); close(fd); @@ -206,20 +206,20 @@ int main(int argc, char **argv) length = meminfo.size; if (offset % meminfo.erasesize) { - fprintf(stderr, "Offset %x not multiple of erase size %x\n", + fprintf(stderr, "Offset %x not multiple of erase size %x\n", offset, meminfo.erasesize); exit(1); } if (length % meminfo.erasesize) { - fprintf(stderr, "Length %x not multiple of erase size %x\n", + fprintf(stderr, "Length %x not multiple of erase size %x\n", length, meminfo.erasesize); exit(1); } if (length + offset > meminfo.size) { - fprintf(stderr, "Length %x + offset %x exceeds device size %x\n", + fprintf(stderr, "Length %x + offset %x exceeds device size %x\n", length, offset, meminfo.size); exit(1); - } + } wbuf = malloc(meminfo.erasesize * 3); if (!wbuf) { -- cgit v1.2.3