[PATCH -next] kmemtrace: fix printk format warnings

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <eduard.munteanu@...>, sfr <sfr@...>
Cc: lkml <linux-kernel@...>, akpm <akpm@...>
Date: Wednesday, August 13, 2008 - 1:51 pm

From: Randy Dunlap <randy.dunlap@oracle.com>

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@oracle.com>
---
 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/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -next] kmemtrace: fix printk format warnings, Randy Dunlap, (Wed Aug 13, 1:51 pm)
Re: [PATCH -next] kmemtrace: fix printk format warnings, Pekka Enberg, (Thu Aug 14, 3:15 pm)