]> 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>
Thu, 29 Sep 2011 06:08:07 +0000 (16:08 +1000)
commit01a2c8f6eb5b5e8ef788d1cc84a89619a03e04cf
treebe4df7cc06f282311ac0755fada33e0b01e30a00
parentfe85eab0581143e2fe9a7104a6a35621b650f58e
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