aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-25 16:37:31 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-25 16:37:31 -0400
commitb2e23f78b53091c9db780f2db7eba72b29ac1997 (patch)
treebfc34e1f6f63a7c6a9287d2e3b923e604718769e /src/lib
parent2057ef8a1b88e97a16f1f7afc7b4b3c350a104bd (diff)
downloadstasis-b2e23f78b53091c9db780f2db7eba72b29ac1997.tar.gz
Colorize SYSERROR and SYSDEBUG output
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/core/include/core_message.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/core/include/core_message.h b/src/lib/core/include/core_message.h
index 1ffa846..aab7203 100644
--- a/src/lib/core/include/core_message.h
+++ b/src/lib/core/include/core_message.h
@@ -3,13 +3,13 @@
#define STASIS_CORE_MESSAGE_H
#define SYSERROR(MSG, ...) do { \
- fprintf(stderr, "%s:%d:%s():%s - ", path_basename(__FILE__), __LINE__, __FUNCTION__, (errno > 0) ? strerror(errno) : "info"); \
+ fprintf(stderr, STASIS_COLOR_RED "ERROR: " STASIS_COLOR_RESET STASIS_COLOR_WHITE "%s:%d:%s()" STASIS_COLOR_RESET ":%s - ", path_basename(__FILE__), __LINE__, __FUNCTION__, (errno > 0) ? strerror(errno) : "info"); \
fprintf(stderr, MSG LINE_SEP, __VA_ARGS__); \
} while (0)
#ifdef DEBUG
#define SYSDEBUG(MSG, ...) do { \
- fprintf(stderr, "DEBUG: %s:%d:%s(): ", path_basename(__FILE__), __LINE__, __FUNCTION__); \
+ fprintf(stderr, STASIS_COLOR_BLUE "DEBUG: " STASIS_COLOR_RESET STASIS_COLOR_WHITE "%s:%d:%s()" STASIS_COLOR_RESET ": ", path_basename(__FILE__), __LINE__, __FUNCTION__); \
fprintf(stderr, MSG LINE_SEP, __VA_ARGS__); \
} while (0)
#else