Skip to content

Commit

Permalink
Fix missing new-line in GC_INFOLOG_PRINTF call in ABORT_ARG<n>
Browse files Browse the repository at this point in the history
* include/private/gc_priv.h (ABORT_ARG1, ABORT_ARG2, ABORT_ARG3):
Output "\n" after C_fmt by GC_INFOLOG_PRINTF.
  • Loading branch information
ivmai committed Feb 22, 2018
1 parent 0034700 commit c3f6e72
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/private/gc_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c3f6e72

Please sign in to comment.