diff options
Diffstat (limited to 'libmisc/log.c')
-rw-r--r-- | libmisc/log.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/libmisc/log.c b/libmisc/log.c index 9bf5366..be87de6 100644 --- a/libmisc/log.c +++ b/libmisc/log.c @@ -1,24 +1,12 @@ /* libmisc/log.c - stdio logging * - * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> + * Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com> * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include <stdio.h> /* for vprintf() */ -#include <stdarg.h> /* for va_list, va_start(), va_end() */ +#include <stdint.h> /* for uint{n}_t */ -#include <libmisc/assert.h> - -#define LOG_NAME -#include <libmisc/log.h> - -int _log_printf(const char *format, ...) { - va_list va; - va_start(va, format); - int ret = vprintf(format, va); - va_end(va); - return ret; -} +#include <libmisc/assert.h> /* for static_assert() */ static const char *byte_strs[] = { "0x00", |