Blame SOURCES/0034-s390x-beautify-sthyi-data-tail-prints.patch

904f19
From f476724ea13d6fae08219aba75a7669eb3e836b3 Mon Sep 17 00:00:00 2001
904f19
From: Janosch Frank <frankja@linux.ibm.com>
904f19
Date: Fri, 30 Nov 2018 16:41:39 +0100
904f19
Subject: [PATCH] s390x: beautify sthyi data tail prints
904f19
904f19
The test already expects a ", " before the print of struct
904f19
padding. Let's add it to s390.c to make the output look a bit nicer and
904f19
fix test runs on z/VM that have padding at the end of the STHYI structs.
904f19
904f19
* s390.c (decode_ebcdic): Add missing comma.
904f19
904f19
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
904f19
---
904f19
 s390.c | 4 +++-
904f19
 1 file changed, 3 insertions(+), 1 deletion(-)
904f19
904f19
diff --git a/s390.c b/s390.c
904f19
index 422c08d..a00c274 100644
904f19
--- a/s390.c
904f19
+++ b/s390.c
904f19
@@ -472,10 +472,12 @@ decode_ebcdic(const char *ebcdic, char *ascii, size_t size)
904f19
 	do { \
904f19
 		if ((size_) > sizeof(*(hdr_)) && \
904f19
 		    !is_filled((char *) ((hdr_) + 1), '\0', \
904f19
-		               (size_) - sizeof(*(hdr_)))) \
904f19
+		               (size_) - sizeof(*(hdr_)))) {	\
904f19
+			tprints(", ");				   \
904f19
 			print_quoted_string((char *) ((hdr_) + 1), \
904f19
 					    (size_) - sizeof(*(hdr_)), \
904f19
 					    QUOTE_FORCE_HEX); \
904f19
+		} \
904f19
 	} while (0)
904f19
 
904f19
 static void
904f19
-- 
904f19
2.1.4
904f19