From 6e5f31edb0d79d3360c2c40f4c987ee324a5723b Mon Sep 17 00:00:00 2001 From: Noah Lewis <47840925+TheAssembler1@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:53:28 -0400 Subject: [PATCH] Fix printing in `PGOTO_ERROR` and `PGOTO_ERROR_VOID` Print new line by default in `PGOTO_ERROR` and `PGOTO_ERROR_VOID` --- src/commons/utils/include/pdc_private.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commons/utils/include/pdc_private.h b/src/commons/utils/include/pdc_private.h index 4118781c7..5c152d30c 100644 --- a/src/commons/utils/include/pdc_private.h +++ b/src/commons/utils/include/pdc_private.h @@ -138,12 +138,14 @@ extern pbool_t err_occurred; #define PGOTO_ERROR(ret_val, ...) \ do { \ LOG_ERROR(__VA_ARGS__); \ + LOG_JUST_PRINT("\n"); \ PGOTO_DONE(ret_val); \ } while (0) #define PGOTO_ERROR_VOID(...) \ do { \ LOG_ERROR(__VA_ARGS__); \ + LOG_JUST_PRINT("\n"); \ PGOTO_DONE_VOID; \ } while (0)