diff options
Diffstat (limited to 'cooker/util.c')
-rw-r--r-- | cooker/util.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/cooker/util.c b/cooker/util.c deleted file mode 100644 index a2ecce0..0000000 --- a/cooker/util.c +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later - -/* seitan - Syscall Expressive Interpreter, Transformer and Notifier - * - * cooker/util.c - Convenience routines - * - * Copyright 2023 Red Hat GmbH - * Author: Stefano Brivio <sbrivio@redhat.com> - */ - -#include <stdio.h> -#include <stdarg.h> -#include <string.h> - -#define logfn(name) \ -void name(const char *format, ...) { \ - va_list args; \ - \ - va_start(args, format); \ - (void)vfprintf(stderr, format, args); \ - va_end(args); \ - if (format[strlen(format)] != '\n') \ - fprintf(stderr, "\n"); \ -} - -logfn(err) -logfn(info) -logfn(debug) - |