blob: a1ec10faf458fdf03c1abed2ce8fd598208ac958 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* libmisc/log.c - stdio logging
*
* Copyright (C) 2024 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() */
#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;
}
|