Commit 9e3bf94
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.com1 parent c745a62 commit 9e3bf94
1 file changed
Lines changed: 12 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
823 | 825 | | |
824 | 826 | | |
825 | 827 | | |
| |||
868 | 870 | | |
869 | 871 | | |
870 | 872 | | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
875 | 876 | | |
876 | 877 | | |
877 | 878 | | |
| |||
931 | 932 | | |
932 | 933 | | |
933 | 934 | | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
| 935 | + | |
| 936 | + | |
938 | 937 | | |
939 | 938 | | |
940 | 939 | | |
| |||
963 | 962 | | |
964 | 963 | | |
965 | 964 | | |
966 | | - | |
967 | | - | |
| 965 | + | |
968 | 966 | | |
969 | 967 | | |
970 | 968 | | |
| |||
0 commit comments