]> 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>
Wed, 5 Oct 2011 07:50:42 +0000 (18:50 +1100)
commit02b6a4770ee2181817f5c7e38ac65f8b039f1cf3
tree7e6d600d9fe1cec06a159cf6ea64c55edac49957
parentf2196c0db2904c67977d45dc6f63e74d75a332cb
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