diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2021-10-19 14:26:19 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2021-10-27 11:40:13 +0000 |
| commit | 5b358b0de963f822226bfee916fb53c80bae4000 (patch) | |
| tree | 336cf15809f2e5b269e22d567e6936bf26af7c0a /lib/test_printf.c | |
| parent | test_printf: Remove separate page_flags variable (diff) | |
| download | kernel-5b358b0de963f822226bfee916fb53c80bae4000.tar.gz kernel-5b358b0de963f822226bfee916fb53c80bae4000.zip | |
test_printf: Remove custom appending of '|'
Instead of having an ifdef to decide whether to print a |, use the
'append' functionality of the main loop to print it.
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Yafang Shao <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Anshuman Khandual <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_printf.c')
| -rw-r--r-- | lib/test_printf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/test_printf.c b/lib/test_printf.c index 4531063afd45..ec584196cb99 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c @@ -616,12 +616,7 @@ page_flags_test(int section, int node, int zone, int last_cpupid, if (flags & PAGEFLAGS_MASK) { snprintf(cmp_buf + size, BUF_SIZE - size, "%s", name); size = strlen(cmp_buf); -#if SECTIONS_WIDTH || NODES_WIDTH || ZONES_WIDTH || \ - LAST_CPUPID_WIDTH || KASAN_TAG_WIDTH - /* Other information also included in page flags */ - snprintf(cmp_buf + size, BUF_SIZE - size, "|"); - size = strlen(cmp_buf); -#endif + append = true; } for (i = 0; i < ARRAY_SIZE(pft); i++) { |
