check_kernel_printf.c: Simplify recursive calling
commit5ceaae86dbee37589a1c2be927aef38a31559bd4
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 12 Feb 2015 20:37:30 +0000 (12 23:37 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 12 Feb 2015 20:37:30 +0000 (12 23:37 +0300)
treee4b586a7f0955a86f561d01d814c006cda9cb7a0
parent9c408c053312b32f213fba06c0c6fee4d588200f
check_kernel_printf.c: Simplify recursive calling

The way I handled ?: in the format argument wasn't very elegant. Just
make check_printf_call do the initial computations, and pull out the
actual checking to a separate function, which can then handle the
various types of the fmtexpr. This should also handle e.g. nested
conditionals automatically, as well as making it easier to handle
static const char[].

Conflicts:
check_kernel_printf.c

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_kernel_printf.c