trace/events: fix compilation error
authorJin Qian <jinqian@google.com>
Wed, 26 Aug 2015 18:55:28 +0000 (11:55 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 27 Oct 2015 08:36:47 +0000 (16:36 +0800)
include/trace/events/filemap.h: In function 'ftrace_raw_output_mm_filemap_find_page_cache_miss':
include/trace/ftrace.h:232:9: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' [-Werror=format=]

Change-Id: Ic2d76f18fc8802cf1e2246f96d84a06d267a30ad
Signed-off-by: Jin Qian <jinqian@google.com>
(cherry picked from commit c91e2d317307431283b96ce040e8aefd44b0b286)

include/trace/events/filemap.h

index 2489b79d1b919c62acb78a0bca6d969fc8ec24d3..e3175d0ec7f0920f4520715aca95d1a38d16a561 100644 (file)
@@ -82,7 +82,7 @@ DECLARE_EVENT_CLASS(mm_filemap_find_page_cache_miss,
                }
        ),
 
-       TP_printk("path_name %s pos %lld count %lu miss %s",
+       TP_printk("path_name %s pos %lld count %zu miss %s",
                  __entry->path_name,
                  __entry->pos, __entry->count,
                  (__entry->miss ? "yes" : "no"))