From c41f0c408ac36c68f17ec9469e3efcec4272ae5d Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 23 Feb 2018 00:54:02 +0300 Subject: [PATCH] Fix missing new-line in ABORT_ARG definition (back-port of commit 4a13abcc from 'release-7_6') * include/private/gc_priv.h (ABORT_ARG1, ABORT_ARG2, ABORT_ARG3): Output "\n" after C_fmt by GC_COND_LOG_PRINTF. --- include/private/gc_priv.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 64bfd646..7bdaf7f8 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -525,17 +525,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_COND_LOG_PRINTF(C_msg /* + */ C_fmt, arg1); \ + GC_COND_LOG_PRINTF(C_msg /* + */ C_fmt "\n", arg1); \ ABORT(C_msg); \ } while (0) #define ABORT_ARG2(C_msg, C_fmt, arg1, arg2) \ do { \ - GC_COND_LOG_PRINTF(C_msg /* + */ C_fmt, arg1, arg2); \ + GC_COND_LOG_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_COND_LOG_PRINTF(C_msg /* + */ C_fmt, arg1, arg2, arg3); \ + GC_COND_LOG_PRINTF(C_msg /* + */ C_fmt "\n", \ + arg1, arg2, arg3); \ ABORT(C_msg); \ } while (0) -- 2.50.1