sched/debug: Factor out printing formats into common macros
authorValentin Schneider <valentin.schneider@arm.com>
Wed, 26 Feb 2020 12:45:42 +0000 (12:45 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 8 Apr 2020 09:35:26 +0000 (11:35 +0200)
commit9e3bf9469c29f7e4e49c5c0d8fecaf8ac57d1fe4
tree8886e2c0ca55264b5bc3ecaafd0ecc404c2f3ac1
parentc745a6212c9923eb2253f4229e5d7277ca3d9d8e
sched/debug: Factor out printing formats into common macros

The printing macros in debug.c keep redefining the same output
format. Collect each output format in a single definition, and reuse that
definition in the other macros. While at it, add a layer of parentheses and
replace printf's  with the newly introduced macros.

Reviewed-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20200226124543.31986-3-valentin.schneider@arm.com
kernel/sched/debug.c