From patchwork Mon May 10 03:54:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhu Yanhai X-Patchwork-Id: 98053 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4A3qA6E014016 for ; Mon, 10 May 2010 03:52:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752207Ab0EJDwH (ORCPT ); Sun, 9 May 2010 23:52:07 -0400 Received: from mga06.intel.com ([134.134.136.21]:40873 "EHLO orsmga101.jf.intel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751254Ab0EJDwF (ORCPT ); Sun, 9 May 2010 23:52:05 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 09 May 2010 20:49:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.52,359,1270450800"; d="scan'208";a="516460072" Received: from unknown (HELO localhost.localdomain) ([172.16.119.128]) by orsmga002.jf.intel.com with ESMTP; 09 May 2010 20:51:32 -0700 From: Zhu Yanhai To: linux-btrfs@vger.kernel.org Subject: Author: Zhu Yanhai Date: Mon, 10 May 2010 11:54:42 +0800 Message-Id: <1273463682-4355-1-git-send-email-yanhai.zhu@linux.intel.com> X-Mailer: git-send-email 1.6.2.2 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 10 May 2010 03:52:10 +0000 (UTC) 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; }