]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remove stray debugging printfs
authorNeilBrown <neilb@suse.de>
Wed, 27 Jan 2010 21:55:18 +0000 (08:55 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 27 Jan 2010 21:55:18 +0000 (08:55 +1100)
These were never supposed to be released, and due
to a type issue they cause compile problems on
some architectures.

Resolves-Debian-Bug: 567167
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index d8d91cbca2aec9aae9f3fddae019e7310d0cbf90..8d9853b22440b2fc00cf264a4f069b1d7e8afc82 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -1437,21 +1437,23 @@ static void validate(int afd, int bfd, unsigned long long offset)
 
                lseek64(bfd, offset, 0);
                if (read(bfd, bbuf, len) != len) {
 
                lseek64(bfd, offset, 0);
                if (read(bfd, bbuf, len) != len) {
-                       printf("len %llu\n", len);
+                       //printf("len %llu\n", len);
                        fail("read first backup failed");
                }
                lseek64(afd, __le64_to_cpu(bsb2.arraystart)*512, 0);
                if (read(afd, abuf, len) != len)
                        fail("read first from array failed");
                if (memcmp(bbuf, abuf, len) != 0) {
                        fail("read first backup failed");
                }
                lseek64(afd, __le64_to_cpu(bsb2.arraystart)*512, 0);
                if (read(afd, abuf, len) != len)
                        fail("read first from array failed");
                if (memcmp(bbuf, abuf, len) != 0) {
+                       #if 0
                        int i;
                        printf("offset=%llu len=%llu\n",
                        int i;
                        printf("offset=%llu len=%llu\n",
-                              __le64_to_cpu(bsb2.arraystart)*512, len);
+                              (unsigned long long)__le64_to_cpu(bsb2.arraystart)*512, len);
                        for (i=0; i<len; i++)
                                if (bbuf[i] != abuf[i]) {
                                        printf("first diff byte %d\n", i);
                                        break;
                                }
                        for (i=0; i<len; i++)
                                if (bbuf[i] != abuf[i]) {
                                        printf("first diff byte %d\n", i);
                                        break;
                                }
+                       #endif
                        fail("data1 compare failed");
                }
        }
                        fail("data1 compare failed");
                }
        }