hw/intc/arm_gic: modernise the DPRINTF
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 2 Mar 2017 19:08:52 +0000 (19:08 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 9 Mar 2017 10:41:49 +0000 (10:41 +0000)
commit68bf93ce9dc5c84c45a827ce2bd6eab768524e79
tree9c71868068cf41017e0a4c79e42906ed6abfaf53
parent6568da459b611845ef55526cd23afc9fa9f4647f
hw/intc/arm_gic: modernise the DPRINTF

While I was debugging the icount issues I realised a bunch of the
messages look quite similar. I've fixed this by including __func__ in
the debug print. At the same time I move the a modern if (GATE) style
printf which ensures the compiler can check for format string errors
even if the code gets optimised away in the non-DEBUG_GIC case.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/intc/arm_gic.c