diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-12 12:46:15 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-12 12:46:49 -0700 |
commit | aec7a1209a7c2314acc5703a94509a403c796444 (patch) | |
tree | 0bc2f20573becea8a032f495a2f7d8e9f3de2bda /lib9p | |
parent | 3f66d2019879a4d3d97e43bd598e6286a21cc01d (diff) |
Avoid using fprintf
Diffstat (limited to 'lib9p')
-rw-r--r-- | lib9p/srv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c index e4212e5..608d470 100644 --- a/lib9p/srv.c +++ b/lib9p/srv.c @@ -6,7 +6,7 @@ #include <alloca.h> #include <inttypes.h> /* for PRI* */ -#include <stdio.h> /* for fprintf(), stderr */ +#include <stdio.h> /* for printf() */ #include <string.h> /* for strerror() */ #include <libcr/coroutine.h> @@ -104,7 +104,7 @@ struct _lib9p_srv_req { /* base utilities *************************************************************/ #define nonrespond_errorf(fmt, ...) \ - fprintf(stderr, "error: " fmt "\n" __VA_OPT__(,) __VA_ARGS__) + printf("error: " fmt "\n" __VA_OPT__(,) __VA_ARGS__) static uint32_t rerror_overhead_for_version(enum lib9p_version version, uint8_t *scratch) { |