Check the printk format string against the matching arguments. We have
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Tue, 20 Jan 2009 18:37:26 +0000 (18:37 +0000)
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Tue, 20 Jan 2009 18:37:26 +0000 (18:37 +0000)
commit90308bb752d2ae64a763d9eed2a324202a634895
tree333ae66d27280cfa6d5d18b745a7490aa89148a2
parentd0363c3927ff08bf48c3a892f6e8ffa37f0e1fde
Check the printk format string against the matching arguments. We have
this type of checking in the v3 code since ages, but v2 will happily
compile any code with bogus printk format strings and/or parameters.
This can cause real bugs and at least needs to emit a warning, if not
an
error. Go with a warning for now since most of the flagged format
strings are wrong but harmless in a 32-bit x86 environment.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3872 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
src/include/console/console.h