kmemtrace: fix printk format warnings
PATCH 1/1 kmemtrace: fix printk format warnings
From: Randy Dunlap <[email protected]>
Fix printk format warnings:
linux-next-20080813/include/linux/kmemtrace.h:33: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'size_t' linux-next-20080813/include/linux/kmemtrace.h:33: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'size_t'
--- include/linux/kmemtrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/kmemtrace.h +1 -1
@@ -31,7 +31,7 @@ static inline void kmemtrace_mark_alloc_ int node) {trace_mark (kmemtrace_alloc,"type_id %d call_site %lu ptr %lu " -"bytes_req %lu bytes_alloc %lu gfp_flags %lu node %d" , +"bytes_req %zu bytes_alloc %zu gfp_flags %lu node %d" , type_id, call_site, (unsigned long ) ptr, bytes_req, bytes_alloc, (unsigned long ) gfp_flags, node); }
---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/
Pekka Enberg
AppliedQuoted 8 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
Fix printk format warnings:
linux-next-20080813/include/linux/kmemtrace.h:33: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'size_t'linux-next-20080813/include/linux/kmemtrace.h:33: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'size_t'Signed-off-by Randy Dunlap <[email protected]>
Applied, thanks!