From: Ryusuke Konishi Subject: Re: [PATCH] nilfs2: fix format string compile warning (ino_t) Date: Fri, 04 Sep 2009 15:55:14 +0900 (JST) Message-ID: <20090904.155514.09563346.ryusuke@osrg.net> References: <20090903154248.GA26842@osiris.boeblingen.de.ibm.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: konishi.ryusuke@lab.ntt.co.jp, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org To: heiko.carstens@de.ibm.com Return-path: Received: from sh.osrg.net ([192.16.179.4]:33720 "EHLO sh.osrg.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756595AbZIDGzx (ORCPT ); Fri, 4 Sep 2009 02:55:53 -0400 In-Reply-To: <20090903154248.GA26842@osiris.boeblingen.de.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, 3 Sep 2009 17:42:48 +0200, Heiko Carstens wrote: > From: Heiko Carstens > > Unlike on most other architectures ino_t is an unsigned int on s390. > So add an explicit cast to avoid this compile warning: > > fs/nilfs2/recovery.c: In function 'recover_dsync_blocks': > fs/nilfs2/recovery.c:555: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'ino_t' > > Signed-off-by: Heiko Carstens > --- > > Patch applies on top of linux-next. Applied, thanks! Ryusuke Konishi > fs/nilfs2/recovery.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > Index: linux-next/fs/nilfs2/recovery.c > =================================================================== > --- linux-next.orig/fs/nilfs2/recovery.c > +++ linux-next/fs/nilfs2/recovery.c > @@ -552,7 +552,8 @@ static int recover_dsync_blocks(struct n > printk(KERN_WARNING > "NILFS warning: error recovering data block " > "(err=%d, ino=%lu, block-offset=%llu)\n", > - err, rb->ino, (unsigned long long)rb->blkoff); > + err, (unsigned long)rb->ino, > + (unsigned long long)rb->blkoff); > if (!err2) > err2 = err; > next: > --