kmemtrace: Better alternative to "kmemtrace: fix printk format warnings".
authorEduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Tue, 19 Aug 2008 17:43:24 +0000 (20:43 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Mon, 29 Dec 2008 13:34:11 +0000 (15:34 +0200)
commit73cd6af0413225b0ada8b8881c3e0cfd26506dfa
treec08f2d9baf76e3786634d4a0ee6af21cfcf97300
parent4a80b24bb2ec66a5cb7fa5ff8335907f09288200
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>
include/linux/kmemtrace.h