Skip to content

Commit 5b358b0

Browse files
Matthew Wilcox (Oracle)pmladek
authored andcommitted
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]
1 parent a25a085 commit 5b358b0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/test_printf.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -616,12 +616,7 @@ page_flags_test(int section, int node, int zone, int last_cpupid,
616616
if (flags & PAGEFLAGS_MASK) {
617617
snprintf(cmp_buf + size, BUF_SIZE - size, "%s", name);
618618
size = strlen(cmp_buf);
619-
#if SECTIONS_WIDTH || NODES_WIDTH || ZONES_WIDTH || \
620-
LAST_CPUPID_WIDTH || KASAN_TAG_WIDTH
621-
/* Other information also included in page flags */
622-
snprintf(cmp_buf + size, BUF_SIZE - size, "|");
623-
size = strlen(cmp_buf);
624-
#endif
619+
append = true;
625620
}
626621

627622
for (i = 0; i < ARRAY_SIZE(pft); i++) {

0 commit comments

Comments
 (0)