]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: neaten warn_alloc_failed
authorJoe Perches <joe@perches.com>
Wed, 5 Oct 2011 00:43:03 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Oct 2011 05:59:44 +0000 (16:59 +1100)
commitb514f622719a82c6199d64a7c6ec102478f3dba8
tree620b39331f710363cc9598c42886b13ab951a5eb
parent04182c0eda0bbe39037a9a3353edad4e5c53b7b1
mm: neaten warn_alloc_failed

Add __attribute__((format (printf...) to the function to validate format
and arguments.  Use vsprintf extension %pV to avoid any possible message
interleaving.  Coalesce format string.  Convert printks/pr_warning to
pr_warn.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
mm/page_alloc.c
mm/vmalloc.c