diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-13 18:46:08 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-15 14:50:03 -0600 |
commit | f01b89b599d40df5d6c127310b0030cd41c8dc85 (patch) | |
tree | f0f7c2d3746e684ba869784f9f3769ba4e7a1730 /libmisc/intercept.c | |
parent | 22336fb34f464dc751f86ad552fa1e40f06921ed (diff) |
libmisc: log.h: Add support for libmisc/fmt.h printing
Diffstat (limited to 'libmisc/intercept.c')
-rw-r--r-- | libmisc/intercept.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libmisc/intercept.c b/libmisc/intercept.c index 332bfa5..af10ea3 100644 --- a/libmisc/intercept.c +++ b/libmisc/intercept.c @@ -5,7 +5,7 @@ */ #include <stdarg.h> /* for va_list, va_start(), va_end() */ -#include <stdio.h> /* for vprintf() */ +#include <stdio.h> /* for vprintf(), putchar() */ #include <stdlib.h> /* for abort() */ #include <libmisc/_intercept.h> @@ -29,6 +29,11 @@ size_t __lm_light_printf(const char *format, ...) { } [[gnu::weak]] +void __lm_putchar(unsigned char c) { + (void) putchar(c); +} + +[[gnu::weak]] void __lm_abort(void) { abort(); } |