From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Carstens Subject: [PATCH] nilfs2: fix format string compile warning (ino_t) Date: Thu, 3 Sep 2009 17:42:48 +0200 Message-ID: <20090903154248.GA26842@osiris.boeblingen.de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org To: Ryusuke Konishi , Andrew Morton Return-path: Received: from mtagate1.de.ibm.com ([195.212.17.161]:33331 "EHLO mtagate1.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751829AbZICPmr (ORCPT ); Thu, 3 Sep 2009 11:42:47 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.1/8.13.1) with ESMTP id n83Fgn2o012647 for ; Thu, 3 Sep 2009 15:42:49 GMT Received: from d12av01.megacenter.de.ibm.com (d12av01.megacenter.de.ibm.com [9.149.165.212]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n83FgnhB2470018 for ; Thu, 3 Sep 2009 17:42:49 +0200 Received: from d12av01.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av01.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n83FgmLS014862 for ; Thu, 3 Sep 2009 17:42:49 +0200 Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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. 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: