]> 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, 12 Oct 2011 06:32:08 +0000 (17:32 +1100)
commitfffee84a4da8bf99c38441ee4b677c08cfaa7203
treeff9dee565c59c9c98c601daa5482819a0b5b73ce
parentc27260e7e860c008801888b1239979d09e9e3baa
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