summaryrefslogtreecommitdiff
path: root/libcr/coroutine.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-12 12:46:15 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-12 12:46:49 -0700
commitaec7a1209a7c2314acc5703a94509a403c796444 (patch)
tree0bc2f20573becea8a032f495a2f7d8e9f3de2bda /libcr/coroutine.c
parent3f66d2019879a4d3d97e43bd598e6286a21cc01d (diff)
Avoid using fprintf
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r--libcr/coroutine.c4
1 files changed, 2 insertions, 2 deletions
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 <setjmp.h> /* for setjmp(), longjmp(), jmp_buf */
#include <stdint.h> /* for uint8_t */
-#include <stdio.h> /* for printf(), fprintf(), stderr */
+#include <stdio.h> /* for printf() */
#include <stdlib.h> /* for aligned_alloc(), free() */
#include <libmisc/assert.h>
@@ -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__)