From 7b97af5898bba05f29daa4d322eed9e31e4d8ab8 Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Sun, 14 Apr 2024 13:53:50 +0300 Subject: [PATCH] Fix missing newline in unit assert messages --- unit/include/bh/unit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unit/include/bh/unit.h b/unit/include/bh/unit.h index 42d41cd..62c0d87 100644 --- a/unit/include/bh/unit.h +++ b/unit/include/bh/unit.h @@ -7,14 +7,14 @@ typedef int (*bh_unit_cb_t)(void); #define bh_unit_assert(e) \ if (!(e)) { \ - printf("%s:%d\t%s", __FILE__, __LINE__, #e); \ + printf("%s:%d\t%s\n", __FILE__, __LINE__, #e); \ return -1; \ } #define bh_unit_assert_delta(x, y, e) \ if ((((x)>(y))?((x)-(y)):((y)-(x)))>(e)) { \ - printf("%s:%d\t%s", __FILE__, __LINE__, #x " == " #y); \ + printf("%s:%d\t%s\n", __FILE__, __LINE__, #x " == " #y); \ return -1; \ }