From patchwork Tue Nov 30 20:30:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 368661 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAUKZIo5027566 for ; Tue, 30 Nov 2010 20:35:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752940Ab0K3UfP (ORCPT ); Tue, 30 Nov 2010 15:35:15 -0500 Received: from georges.telenet-ops.be ([195.130.137.68]:53400 "EHLO georges.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752193Ab0K3UfO convert rfc822-to-8bit (ORCPT ); Tue, 30 Nov 2010 15:35:14 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 30 Nov 2010 20:35:18 +0000 (UTC) X-Greylist: delayed 302 seconds by postgrey-1.27 at vger.kernel.org; Tue, 30 Nov 2010 15:35:10 EST Received: from ayla.of.borg ([94.224.189.190]) by georges.telenet-ops.be with bizsmtp id dYW21f00146vLmN06YW2oV; Tue, 30 Nov 2010 21:30:04 +0100 Received: from geert (helo=localhost) by ayla.of.borg with local-esmtp (Exim 4.71) (envelope-from ) id 1PNWpt-0001hN-R5; Tue, 30 Nov 2010 21:30:01 +0100 Date: Tue, 30 Nov 2010 21:30:01 +0100 (CET) From: Geert Uytterhoeven To: Miao Xie , Chris Mason cc: linux-btrfs@vger.kernel.org, Linux Kernel Development , Andrew Morton Subject: [PATCH] btrfs: Correct printing of sector_t Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 8039390..fbffe5f 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -5712,9 +5712,9 @@ static void btrfs_end_dio_bio(struct bio *bio, int err) if (err) { printk(KERN_ERR "btrfs direct IO failed ino %lu rw %lu " - "disk_bytenr %lu len %u err no %d\n", - dip->inode->i_ino, bio->bi_rw, bio->bi_sector, - bio->bi_size, err); + "disk_bytenr %llu len %u err no %d\n", + dip->inode->i_ino, bio->bi_rw, + (unsigned long long)bio->bi_sector, bio->bi_size, err); dip->errors = 1; /*