From 16467c95936f25e38668b8a1156d985eb951f7ce Mon Sep 17 00:00:00 2001 From: Jin Qian Date: Wed, 26 Aug 2015 11:55:28 -0700 Subject: [PATCH] trace/events: fix compilation error 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 (cherry picked from commit c91e2d317307431283b96ce040e8aefd44b0b286) --- include/trace/events/filemap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/trace/events/filemap.h b/include/trace/events/filemap.h index 2489b79d1b91..e3175d0ec7f0 100644 --- a/include/trace/events/filemap.h +++ b/include/trace/events/filemap.h @@ -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")) -- 2.34.1