[PATCH -next] kmemtrace: fix printk format warnings

From: Randy Dunlap
Date: Wed Aug 13 2008 - 13:52:50 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

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 <randy.dunlap@xxxxxxxxxx>
---
include/linux/kmemtrace.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20080813.orig/include/linux/kmemtrace.h
+++ linux-next-20080813/include/linux/kmemtrace.h
@@ -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/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/