summaryrefslogtreecommitdiff
path: root/lib9p/srv.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/srv.c')
-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) {