From patchwork Fri Apr 19 21:20:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 2467021 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B433EDF25A for ; Fri, 19 Apr 2013 21:20:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754510Ab3DSVUY (ORCPT ); Fri, 19 Apr 2013 17:20:24 -0400 Received: from casper.infradead.org ([85.118.1.10]:52638 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754545Ab3DSVUX (ORCPT ); Fri, 19 Apr 2013 17:20:23 -0400 Received: from static-50-53-38-135.bvtn.or.frontiernet.net ([50.53.38.135] helo=dragon.site) by casper.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1UTIjG-0001Rp-Gi; Fri, 19 Apr 2013 21:20:22 +0000 Message-ID: <5171B507.4030808@infradead.org> Date: Fri, 19 Apr 2013 14:20:07 -0700 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Stephen Rothwell CC: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Sage Weil , ceph-devel@vger.kernel.org Subject: [PATCH -next] ceph: fix printk format warnings in file.c References: <20130419181924.a035efe6d5e73fe0db9ddb84@canb.auug.org.au> In-Reply-To: <20130419181924.a035efe6d5e73fe0db9ddb84@canb.auug.org.au> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org From: Randy Dunlap Fix printk format warnings by using %zd for 'ssize_t' variables: fs/ceph/file.c:751:2: warning: format '%ld' expects argument of type 'long int', but argument 11 has type 'ssize_t' [-Wformat] fs/ceph/file.c:762:2: warning: format '%ld' expects argument of type 'long int', but argument 11 has type 'ssize_t' [-Wformat] Signed-off-by: Randy Dunlap Cc: Sage Weil Cc: ceph-devel@vger.kernel.org --- fs/ceph/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux-next-20130419.orig/fs/ceph/file.c +++ linux-next-20130419/fs/ceph/file.c @@ -748,7 +748,7 @@ retry_snap: goto out; } - dout("aio_write %p %llx.%llx %llu~%ld getting caps. i_size %llu\n", + dout("aio_write %p %llx.%llx %llu~%zd getting caps. i_size %llu\n", inode, ceph_vinop(inode), pos, count, inode->i_size); if (fi->fmode & CEPH_FILE_MODE_LAZY) want = CEPH_CAP_FILE_BUFFER | CEPH_CAP_FILE_LAZYIO; @@ -759,7 +759,7 @@ retry_snap: if (err < 0) goto out; - dout("aio_write %p %llx.%llx %llu~%ld got cap refs on %s\n", + dout("aio_write %p %llx.%llx %llu~%zd got cap refs on %s\n", inode, ceph_vinop(inode), pos, count, ceph_cap_string(got)); if ((got & (CEPH_CAP_FILE_BUFFER|CEPH_CAP_FILE_LAZYIO)) == 0 ||