summaryrefslogtreecommitdiffstats
path: root/Grow.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-01-28 08:55:18 +1100
committerNeilBrown <neilb@suse.de>2010-01-28 08:55:18 +1100
commit080fd00521590cef01e4b6d8268fd998e15698cf (patch)
tree91f61f181b8ac77ea3f4cdaa92e47bda59bf686b /Grow.c
parent4d0b563b5b5597cc1467e3560f87fc3a144223a2 (diff)
downloadmdadm-080fd00521590cef01e4b6d8268fd998e15698cf.tar.gz
mdadm-080fd00521590cef01e4b6d8268fd998e15698cf.tar.xz
mdadm-080fd00521590cef01e4b6d8268fd998e15698cf.zip
Remove stray debugging printfs
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>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Grow.c b/Grow.c
index d8d91cb..8d9853b 100644
--- 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) {
- 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) {
+ #if 0
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;
}
+ #endif
fail("data1 compare failed");
}
}