]> granicus.if.org Git - gc/commitdiff
Fix missing new-line in GC_INFOLOG_PRINTF call in ABORT_ARG<n>
authorIvan Maidanski <ivmai@mail.ru>
Thu, 22 Feb 2018 21:54:02 +0000 (00:54 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 22 Feb 2018 21:54:02 +0000 (00:54 +0300)
* include/private/gc_priv.h (ABORT_ARG1, ABORT_ARG2, ABORT_ARG3):
Output "\n" after C_fmt by GC_INFOLOG_PRINTF.

include/private/gc_priv.h

index 42ecda1754e33e8eb0ab411d65e27f4cfae1979d..a7a6bdf7d730b82a222727de2f4dc8de5d962320 100644 (file)
@@ -601,17 +601,18 @@ typedef char * ptr_t;   /* A generic pointer to which we can add        */
 /* should match their format specifiers.                                */
 #define ABORT_ARG1(C_msg, C_fmt, arg1) \
                 do { \
-                  GC_INFOLOG_PRINTF(C_msg /* + */ C_fmt, arg1); \
+                  GC_INFOLOG_PRINTF(C_msg /* + */ C_fmt "\n", arg1); \
                   ABORT(C_msg); \
                 } while (0)
 #define ABORT_ARG2(C_msg, C_fmt, arg1, arg2) \
                 do { \
-                  GC_INFOLOG_PRINTF(C_msg /* + */ C_fmt, arg1, arg2); \
+                  GC_INFOLOG_PRINTF(C_msg /* + */ C_fmt "\n", arg1, arg2); \
                   ABORT(C_msg); \
                 } while (0)
 #define ABORT_ARG3(C_msg, C_fmt, arg1, arg2, arg3) \
                 do { \
-                  GC_INFOLOG_PRINTF(C_msg /* + */ C_fmt, arg1, arg2, arg3); \
+                  GC_INFOLOG_PRINTF(C_msg /* + */ C_fmt "\n", \
+                                    arg1, arg2, arg3); \
                   ABORT(C_msg); \
                 } while (0)