]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: neaten warn_alloc_failed
authorJoe Perches <joe@perches.com>
Wed, 28 Sep 2011 00:50:16 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 4 Oct 2011 07:38:34 +0000 (18:38 +1100)
commita35c267ddc1b0a42b84730298ea370b2f0915956
tree11aa293cee462ed2485d164716b467223957f930
parentbf59b99dc72509b5a76e7bb0f2ef2e4a4322157f
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 <>
include/linux/mm.h
mm/page_alloc.c
mm/vmalloc.c