diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-07-01 11:08:21 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-07-01 11:08:21 +0000 |
| commit | fe3caeefac7a2081f5c9db90bf5c821624a71082 (patch) | |
| tree | d954657fe8f8ed8b28404739f33685ad0f0ae0fd /src/log.c | |
| parent | 166b788d61a443a1576f8b56abdf06fea5a2178e (diff) | |
checkpoint!
Diffstat (limited to 'src/log.c')
| -rw-r--r-- | src/log.c | 19 |
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 |
