From patchwork Thu Oct 23 22:47:00 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Beregalov X-Patchwork-Id: 5534 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id B24AEDDE04 for ; Fri, 24 Oct 2008 09:47:16 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752204AbYJWWrP (ORCPT ); Thu, 23 Oct 2008 18:47:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753428AbYJWWrO (ORCPT ); Thu, 23 Oct 2008 18:47:14 -0400 Received: from fk-out-0910.google.com ([209.85.128.190]:21734 "EHLO fk-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752986AbYJWWrO (ORCPT ); Thu, 23 Oct 2008 18:47:14 -0400 Received: by fk-out-0910.google.com with SMTP id 18so367735fkq.5 for ; Thu, 23 Oct 2008 15:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=5hlRsWMHsqju+X+IjDCn9dKs+/o+wyf5mewuUYQ+5X4=; b=FYmKWwG4Ng5aT09w51sVO+pyJcpqEuc5ToE6SY3LDhQSPUzIPSpXZwoyIRfPUNW/UJ aStPpvyfbausC51MPphEEo5IPlDmjE2Q3unrYN2ME1rZgIUFS3Xef9s/83wzdk3+EqtV aK17hHZBWiOdV+Q6Pj4s5leg9qQHnoqiylYHc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=JDCzYv398Jd3/CsHaEu1g9Q0MFxsZmvmVKno15pHBR2VHuKsQEuOklGWFU5Ltx+OL2 rXkEIJrP/75aVJ6Xh0G6tNTPZfBCXxUspxgbEMxw4iTYZC4N0/YG+mncPsjrWFlYMo37 t5lc70t1wDOOC+K2s8uBPIcNrnA8gzhIXE4Xw= Received: by 10.180.251.15 with SMTP id y15mr405241bkh.106.1224802028390; Thu, 23 Oct 2008 15:47:08 -0700 (PDT) Received: from @ (ppp91-77-116-118.pppoe.mtu-net.ru [91.77.116.118]) by mx.google.com with ESMTPS id c28sm13707213fka.18.2008.10.23.15.47.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Oct 2008 15:47:07 -0700 (PDT) Date: Fri, 24 Oct 2008 02:47:00 +0400 From: Alexander Beregalov To: tytso@mit.edu, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH resend] ext4: fix printk format warning Message-ID: <20081023224700.GA28845@orion> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org fs/ext4/balloc.c:607: warning: format '%lld' expects type 'long long int', but argument 2 has type 's64' fs/ext4/inode.c:1822: warning: format '%lld' expects type 'long long int', but argument 2 has type 's64' fs/ext4/inode.c:1824: warning: format '%lld' expects type 'long long int', but argument 2 has type 's64' Signed-off-by: Alexander Beregalov --- fs/ext4/balloc.c | 2 +- fs/ext4/inode.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index bd2ece2..f62a885 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c @@ -604,7 +604,7 @@ int ext4_claim_free_blocks(struct ext4_sb_info *sbi, if (dirty_blocks < 0) { printk(KERN_CRIT "Dirty block accounting " "went wrong %lld\n", - dirty_blocks); + (long long)dirty_blocks); } } /* Check whether we have space after diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 9b4ec9d..a5cd96b 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -1819,9 +1819,9 @@ static void ext4_print_free_blocks(struct inode *inode) ext4_count_free_blocks(inode->i_sb)); printk(KERN_EMERG "Free/Dirty block details\n"); printk(KERN_EMERG "free_blocks=%lld\n", - percpu_counter_sum(&sbi->s_freeblocks_counter)); + (long long)percpu_counter_sum(&sbi->s_freeblocks_counter)); printk(KERN_EMERG "dirty_blocks=%lld\n", - percpu_counter_sum(&sbi->s_dirtyblocks_counter)); + (long long)percpu_counter_sum(&sbi->s_dirtyblocks_counter)); printk(KERN_EMERG "Block reservation details\n"); printk(KERN_EMERG "i_reserved_data_blocks=%lu\n", EXT4_I(inode)->i_reserved_data_blocks);