diff options
author | Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> | 2008-08-19 13:43:24 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2008-12-29 08:34:11 -0500 |
commit | 73cd6af0413225b0ada8b8881c3e0cfd26506dfa (patch) | |
tree | c08f2d9baf76e3786634d4a0ee6af21cfcf97300 /include | |
parent | 4a80b24bb2ec66a5cb7fa5ff8335907f09288200 (diff) |
kmemtrace: Better alternative to "kmemtrace: fix printk format warnings".
Fix the problem "kmemtrace: fix printk format warnings" attempted to fix,
but resulted in marker-probe format mismatch warnings. Instead of carrying
size_t into probes, we get rid of it by casting to unsigned long, just as
we did with gfp_t.
This way, we don't need to change marker format strings and we don't have
to rely on other format specifiers like "%zu", making for consistent use
of more generic data types (since there are no format specifiers for
gfp_t, for example).
Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kmemtrace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/kmemtrace.h b/include/linux/kmemtrace.h index 2c332010cb4e..5bea8ead6a6b 100644 --- a/include/linux/kmemtrace.h +++ b/include/linux/kmemtrace.h | |||
@@ -33,7 +33,8 @@ static inline void kmemtrace_mark_alloc_node(enum kmemtrace_type_id type_id, | |||
33 | trace_mark(kmemtrace_alloc, "type_id %d call_site %lu ptr %lu " | 33 | trace_mark(kmemtrace_alloc, "type_id %d call_site %lu ptr %lu " |
34 | "bytes_req %lu bytes_alloc %lu gfp_flags %lu node %d", | 34 | "bytes_req %lu bytes_alloc %lu gfp_flags %lu node %d", |
35 | type_id, call_site, (unsigned long) ptr, | 35 | type_id, call_site, (unsigned long) ptr, |
36 | bytes_req, bytes_alloc, (unsigned long) gfp_flags, node); | 36 | (unsigned long) bytes_req, (unsigned long) bytes_alloc, |
37 | (unsigned long) gfp_flags, node); | ||
37 | } | 38 | } |
38 | 39 | ||
39 | static inline void kmemtrace_mark_free(enum kmemtrace_type_id type_id, | 40 | static inline void kmemtrace_mark_free(enum kmemtrace_type_id type_id, |