summaryrefslogtreecommitdiff
path: root/lib9p/9p.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-28 23:23:49 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-28 23:23:49 -0600
commita5ff9ff765d3e14d01099fade6b94624bb8de22b (patch)
tree94b7dc9a194393e4ca0265d3e5ac56d3e9335a57 /lib9p/9p.c
parentf410026b7bc96dbb42fec3839dc5d2e41b12f4a4 (diff)
it compiles!
Diffstat (limited to 'lib9p/9p.c')
-rw-r--r--lib9p/9p.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib9p/9p.c b/lib9p/9p.c
index 8d53815..90a2b0d 100644
--- a/lib9p/9p.c
+++ b/lib9p/9p.c
@@ -62,7 +62,8 @@ ssize_t lib9p_unmarshal_size(struct lib9p_ctx *ctx, uint8_t *net_bytes) {
/* Body */
struct _vtable_msg vtable = _lib9p_vtables[ctx->version].msgs[typ];
if (!vtable.unmarshal_extrasize)
- return lib9p_errorf(ctx, LINUX_EOPNOTSUPP, "unknown message type %"PRIu8, typ);
+ return lib9p_errorf(ctx, LINUX_EOPNOTSUPP, "unknown message type %s",
+ lib9p_msg_type_str(typ));
if (vtable.unmarshal_extrasize(&subctx))
return -1;