xfs: kill some warnings on i386 builds
authorDave Chinner <david@fromorbit.com>
Thu, 17 Dec 2009 00:20:07 +0000 (00:20 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 8 Jan 2010 19:32:29 +0000 (13:32 -0600)
Randy Dunlap Reported printk() format-related warnings reported
on i386 builds in his environment.  Dave Chinner provided this
patch to eliminate them.

Signed-off by: Dave Chinner <david@fromorbit.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_trace.h

index c40834bdee58a28c5a49ab5d27b1bc678e0d2dc3..d4ded59d2ffe4dcf8c6eb575754b10fdbade75db 100644 (file)
@@ -815,7 +815,7 @@ TRACE_EVENT(name, \
        ), \
        TP_printk("dev %d:%d ino 0x%llx size 0x%llx new_size 0x%llx " \
                  "offset 0x%llx count %zd flags %s " \
-                 "startoff 0x%llx startblock 0x%llx blockcount 0x%llx", \
+                 "startoff 0x%llx startblock %s blockcount 0x%llx", \
                  MAJOR(__entry->dev), MINOR(__entry->dev), \
                  __entry->ino, \
                  __entry->size, \
@@ -824,7 +824,7 @@ TRACE_EVENT(name, \
                  __entry->count, \
                  __print_flags(__entry->flags, "|", BMAPI_FLAGS), \
                  __entry->startoff, \
-                 __entry->startblock, \
+                 xfs_fmtfsblock(__entry->startblock), \
                  __entry->blockcount) \
 )
 DEFINE_IOMAP_EVENT(xfs_iomap_enter);
@@ -1201,7 +1201,7 @@ TRACE_EVENT(name, \
        TP_printk("dev %d:%d agno %u agbno %u minlen %u maxlen %u mod %u " \
                  "prod %u minleft %u total %u alignment %u minalignslop %u " \
                  "len %u type %s otype %s wasdel %d wasfromfl %d isfl %d " \
-                 "userdata %d firstblock 0x%llx", \
+                 "userdata %d firstblock %s", \
                  MAJOR(__entry->dev), MINOR(__entry->dev), \
                  __entry->agno, \
                  __entry->agbno, \
@@ -1220,7 +1220,7 @@ TRACE_EVENT(name, \
                  __entry->wasfromfl, \
                  __entry->isfl, \
                  __entry->userdata, \
-                 __entry->firstblock) \
+                 xfs_fmtfsblock(__entry->firstblock)) \
 )
 
 DEFINE_ALLOC_EVENT(xfs_alloc_exact_done);