diff --git a/src/lib/common/include/sol-log.h b/src/lib/common/include/sol-log.h index 3d0e1260a..61b61cb9c 100644 --- a/src/lib/common/include/sol-log.h +++ b/src/lib/common/include/sol-log.h @@ -472,7 +472,7 @@ sol_log_domain_init_level(struct sol_log_domain *domain) #ifdef SOL_LOG_FILES #define SOL_LOG_FILE __FILE__ #else -#define SOL_LOG_FILE NULL +#define SOL_LOG_FILE "" #endif /** @@ -489,7 +489,7 @@ sol_log_domain_init_level(struct sol_log_domain *domain) #ifdef SOL_LOG_FUNCTIONS #define SOL_LOG_FUNCTION __PRETTY_FUNCTION__ #else -#define SOL_LOG_FUNCTION NULL +#define SOL_LOG_FUNCTION "" #endif /** diff --git a/src/lib/common/sol-log.c b/src/lib/common/sol-log.c index b55e27d2f..fb8a83a65 100644 --- a/src/lib/common/sol-log.c +++ b/src/lib/common/sol-log.c @@ -58,9 +58,9 @@ static bool _inited = false; if (SOL_UNLIKELY(!_inited)) { \ fprintf(stderr, "CRITICAL:%s:%d:%s() " \ "SOL_LOG used before initialization. "fmt "\n", \ - SOL_LOG_FILE ? : "", \ + SOL_LOG_FILE, \ __LINE__, \ - SOL_LOG_FUNCTION ? : "", \ + SOL_LOG_FUNCTION, \ ## __VA_ARGS__); \ abort(); \ } \