From 24cd8ca4ee1ea08526eb82e6c122870c86da5603 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 19 Nov 2024 21:20:13 -0700 Subject: Add libmisc/log.h to remove stdio.h --- lib9p/srv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib9p') 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 #include /* for PRI* */ -#include /* for printf() */ #include /* for strerror() */ #include @@ -16,6 +15,9 @@ #include #include +#define LOG_NAME 9P_SRV +#include + #define IMPLEMENTATION_FOR_LIB9P_SRV_H YES #include #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) { -- cgit v1.2.3-2-g168b