]> granicus.if.org Git - strace/commitdiff
s390x: beautify sthyi data tail prints
authorJanosch Frank <frankja@linux.ibm.com>
Fri, 30 Nov 2018 15:41:39 +0000 (16:41 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 5 Dec 2018 16:10:05 +0000 (16:10 +0000)
The test already expects a ", " before the print of struct
padding. Let's add it to s390.c to make the output look a bit nicer and
fix test runs on z/VM that have padding at the end of the STHYI structs.

* s390.c (decode_ebcdic): Add missing comma.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
s390.c

diff --git a/s390.c b/s390.c
index 422c08d3b8977539b2d2668fb82a2f4975b3ba6a..a00c274ef00c1728bfccd77a2283697fc3353634 100644 (file)
--- a/s390.c
+++ b/s390.c
@@ -472,10 +472,12 @@ decode_ebcdic(const char *ebcdic, char *ascii, size_t size)
        do { \
                if ((size_) > sizeof(*(hdr_)) && \
                    !is_filled((char *) ((hdr_) + 1), '\0', \
-                              (size_) - sizeof(*(hdr_)))) \
+                              (size_) - sizeof(*(hdr_)))) {    \
+                       tprints(", ");                             \
                        print_quoted_string((char *) ((hdr_) + 1), \
                                            (size_) - sizeof(*(hdr_)), \
                                            QUOTE_FORCE_HEX); \
+               } \
        } while (0)
 
 static void