From aec7a1209a7c2314acc5703a94509a403c796444 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 12 Nov 2024 12:46:15 -0700 Subject: Avoid using fprintf --- libcr/coroutine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcr/coroutine.c') diff --git a/libcr/coroutine.c b/libcr/coroutine.c index ed1c8e0..553acc8 100644 --- a/libcr/coroutine.c +++ b/libcr/coroutine.c @@ -6,7 +6,7 @@ #include /* for setjmp(), longjmp(), jmp_buf */ #include /* for uint8_t */ -#include /* for printf(), fprintf(), stderr */ +#include /* for printf() */ #include /* for aligned_alloc(), free() */ #include @@ -356,7 +356,7 @@ static cid_t coroutine_running = 0; /* utility functions **********************************************************/ -#define errorf(...) fprintf(stderr, "error: " __VA_ARGS__) +#define errorf(...) printf("error: " __VA_ARGS__) #define infof(...) printf("info: " __VA_ARGS__) #if CONFIG_COROUTINE_DEBUG #define debugf(...) printf("dbg: " __VA_ARGS__) -- cgit v1.2.3-2-g168b