diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-20 12:45:42 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-06 11:50:46 -0600 |
commit | 797a77fcc8655a641630758dc4022f215008f23b (patch) | |
tree | 0e485cb3a83ae7388a729b20f3aec617cb8e4bb1 /lib9p/srv.c | |
parent | 0fec22d4106ff6f80296d1511eec7a82160c2245 (diff) |
libmisc: log.h: Add a "log_" prefix to errorf/infof/debugf
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r-- | lib9p/srv.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c index 6d9d992..ddf4834 100644 --- a/lib9p/srv.c +++ b/lib9p/srv.c @@ -54,12 +54,12 @@ void lib9p_srv_acknowledge_flush(struct lib9p_srv_ctx *ctx) { ctx->flush_acknowledged = true; } -#define req_debugf(fmt, ...) \ - debugf("cid=%zu: %s(tag=%"PRIu16"): " fmt, \ - cr_getcid(), \ - lib9p_msgtype_str(ctx->basectx.version, ctx->net_bytes[4]), \ - ctx->tag \ - __VA_OPT__(,) __VA_ARGS__) +#define req_debugf(fmt, ...) \ + log_debugf("cid=%zu: %s(tag=%"PRIu16"): " fmt, \ + cr_getcid(), \ + lib9p_msgtype_str(ctx->basectx.version, ctx->net_bytes[4]), \ + ctx->tag \ + __VA_OPT__(,) __VA_ARGS__) /* structs ********************************************************************/ @@ -361,7 +361,7 @@ static void srv_msglog(struct srv_req *req, enum lib9p_msg_type typ, void *hostm #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat" #pragma GCC diagnostic ignored "-Wformat-extra-args" - infof("%c %v", typ % 2 ? '<' : '>', lo_box_lib9p_msg_as_fmt_formatter(&req->basectx, typ, hostmsg)); + log_infof("%c %v", typ % 2 ? '<' : '>', lo_box_lib9p_msg_as_fmt_formatter(&req->basectx, typ, hostmsg)); #pragma GCC diagnostic pop } @@ -373,7 +373,7 @@ static ssize_t srv_write_Rmsg(struct srv_req *req, struct lib9p_Rmsg_send_buf *r return r; } -#define srv_nonrespond_errorf errorf +#define srv_nonrespond_errorf log_errorf static void srv_respond_error(struct srv_req *req) { #if CONFIG_9P_ENABLE_9P2000_u || CONFIG_9P_ENABLE_9P2000_L |