]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
xfs: fix compiler warning in xfs_trace.h
authorChristoph Hellwig <hch@infradead.org>
Sun, 24 Apr 2011 19:02:58 +0000 (19:02 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 28 Apr 2011 18:27:06 +0000 (13:27 -0500)
xfs_fsblock_t may be a 32-bit type on if XFS_BIG_BLKNOS is not set,
make sure to cast a value of this type to an unsigned long long
before using the ll printk qualifier.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_trace.h

index 37df9ad7fd1aa30e16b10562eabc2eff40455048..d48b7a579ae14bc4f90290535a0f938213571edb 100644 (file)
@@ -1391,7 +1391,7 @@ DECLARE_EVENT_CLASS(xfs_alloc_class,
                  __entry->wasfromfl,
                  __entry->isfl,
                  __entry->userdata,
-                 __entry->firstblock)
+                 (unsigned long long)__entry->firstblock)
 )
 
 #define DEFINE_ALLOC_EVENT(name) \