xfs
[Top] [All Lists]

[PATCH] fix compiler warning in xfsidbg

To: xfs@xxxxxxxxxxx
Subject: [PATCH] fix compiler warning in xfsidbg
From: Christoph Hellwig <hch@xxxxxx>
Date: Thu, 14 Aug 2008 22:30:17 +0200
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
attr_list_context.count is a ssize_t adn thus we need to use %zd, not
%ld to print it.


Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: linux-2.6-xfs/fs/xfs/xfsidbg.c
===================================================================
--- linux-2.6-xfs.orig/fs/xfs/xfsidbg.c 2008-08-14 15:24:38.000000000 -0300
+++ linux-2.6-xfs/fs/xfs/xfsidbg.c      2008-08-14 15:27:20.000000000 -0300
@@ -4171,7 +4171,7 @@ xfsidbg_xattrcontext(xfs_attr_list_conte
                          context->cursor->hashval, context->cursor->blkno,
                          context->cursor->offset, context->cursor->pad1,
                          context->cursor->pad2, context->cursor->initted);
-       kdb_printf("alist 0x%p, bufsize 0x%x, count %ld, firstu 0x%x\n",
+       kdb_printf("alist 0x%p, bufsize 0x%x, count %zd, firstu 0x%x\n",
                       context->alist, context->bufsize, context->count,
                       context->firstu);
 }


<Prev in Thread] Current Thread [Next in Thread>