summaryrefslogtreecommitdiff
path: root/lib9p
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-19 21:20:13 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-19 22:05:53 -0700
commit24cd8ca4ee1ea08526eb82e6c122870c86da5603 (patch)
tree25e467df0236b8a514bbc328299f8500277f9512 /lib9p
parent1cc68fb6f72ada5446a9914cc3bf97db9259a880 (diff)
Add libmisc/log.h to remove stdio.h
Diffstat (limited to 'lib9p')
-rw-r--r--lib9p/srv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c
index 5bec0d6..a7c4293 100644
--- a/lib9p/srv.c
+++ b/lib9p/srv.c
@@ -6,7 +6,6 @@
#include <alloca.h>
#include <inttypes.h> /* for PRI* */
-#include <stdio.h> /* for printf() */
#include <string.h> /* for strerror() */
#include <libcr/coroutine.h>
@@ -16,6 +15,9 @@
#include <libmisc/assert.h>
#include <libmisc/vcall.h>
+#define LOG_NAME 9P_SRV
+#include <libmisc/log.h>
+
#define IMPLEMENTATION_FOR_LIB9P_SRV_H YES
#include <lib9p/srv.h>
#include "internal.h"
@@ -103,8 +105,7 @@ struct _lib9p_srv_req {
/* base utilities *************************************************************/
-#define nonrespond_errorf(fmt, ...) \
- printf("error: " fmt "\n" __VA_OPT__(,) __VA_ARGS__)
+#define nonrespond_errorf errorf
static uint32_t rerror_overhead_for_version(enum lib9p_version version,
uint8_t *scratch) {