summaryrefslogtreecommitdiff
path: root/libmisc/intercept.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-15 00:18:27 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-15 14:58:17 -0600
commit3faaad9fe1f11cfe5699c6720c897bfddc7cf49a (patch)
treef15758869c758eeeb7604afc5c03e8d7601d8315 /libmisc/intercept.c
parent9c0338b1b4495457659157e1e9f47d422dcefc2e (diff)
Begone with the printf variants of the log functions
Diffstat (limited to 'libmisc/intercept.c')
-rw-r--r--libmisc/intercept.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libmisc/intercept.c b/libmisc/intercept.c
index 70671f6..30870bf 100644
--- a/libmisc/intercept.c
+++ b/libmisc/intercept.c
@@ -4,22 +4,12 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-#include <stdarg.h> /* for va_list, va_start(), va_end() */
-#include <stdio.h> /* for vprintf(), putchar() */
+#include <stdio.h> /* for putchar() */
#include <stdlib.h> /* for abort() */
#include <libmisc/_intercept.h>
[[gnu::weak]]
-size_t __lm_printf(const char *format, ...) {
- va_list va;
- va_start(va, format);
- size_t ret = (size_t) vprintf(format, va);
- va_end(va);
- return ret;
-}
-
-[[gnu::weak]]
void __lm_putchar(unsigned char c) {
(void) putchar(c);
}