aboutsummaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authordacctal <donotcontactmevia@email.invalid>2026-07-01 11:08:21 +0000
committerdacctal <donotcontactmevia@email.invalid>2026-07-01 11:08:21 +0000
commitfe3caeefac7a2081f5c9db90bf5c821624a71082 (patch)
treed954657fe8f8ed8b28404739f33685ad0f0ae0fd /src/log.c
parent166b788d61a443a1576f8b56abdf06fea5a2178e (diff)
checkpoint!
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
new file mode 100644
index 0000000..078afde
--- /dev/null
+++ b/src/log.c
@@ -0,0 +1,19 @@
+
+#include <stdarg.h>
+#include <stdio.h>
+
+#include "globs.h"
+#include "log.h"
+
+#define X(n, N) \
+ void log_##n(const char *format, ...) { \
+ va_list args; \
+ va_start(args, format); \
+ eprintf(PKGIT_PREFIX_##N); \
+ vfprintf(stderr, format, args); \
+ eprintf("\n"); \
+ va_end(args); \
+ }
+
+LOG_FUNCTIONS
+#undef X