From 77dc79afe5fd909fb1fe0a3cc668db2763b82fb8 Mon Sep 17 00:00:00 2001 From: rubin Date: Fri, 22 May 2026 13:42:51 +0200 Subject: import repository Signed-off-by: rubinowy blask --- logging.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 logging.h (limited to 'logging.h') diff --git a/logging.h b/logging.h new file mode 100644 index 0000000..6ad5729 --- /dev/null +++ b/logging.h @@ -0,0 +1,29 @@ +#include +#include + +static void +aura_printf(const char *fmt, ...) +{ + va_list args = { 0 }; + + printf("[%d] ", getpid()); + va_start(args, fmt); + vprintf(fmt, args); + va_end(args); + + return; +} + +static void +aura_fprintf(FILE *stream, const char *fmt, ...) +{ + va_list args = { 0 }; + + fprintf(stream, "[%d] ", getpid()); + va_start(args, fmt); + vfprintf(stream, fmt, args); + va_end(args); + + return; +} + -- cgit 1.4.1