From b227b4dd7c2365159bc095abde68c71f375691bb Mon Sep 17 00:00:00 2001 From: Zhu Yanhai Date: Thu, 9 Sep 2010 14:02:57 +0800 Subject: [PATCH] Make csum_tree_block_size complain about the right thing. It dereferenced a wrong pointer before. Signed-off-by: Zhu Yanhai --- disk-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk-io.c b/disk-io.c index addebe1..c1ed8c8 100644 --- a/disk-io.c +++ b/disk-io.c @@ -86,7 +86,7 @@ int csum_tree_block_size(struct extent_buffer *buf, u16 csum_size, if (memcmp_extent_buffer(buf, result, 0, csum_size)) { printk("checksum verify failed on %llu wanted %X " "found %X\n", (unsigned long long)buf->start, - *((int *)result), *((int *)buf)); + *((int *)result), *((char *)buf->data)); free(result); return 1; } -- 2.7.4