summaryrefslogtreecommitdiff
path: root/lib9p/srv.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-03-22 19:17:02 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-03-22 19:17:02 -0600
commit185c3329145959433b8b805de5f114b66b8fcaee (patch)
tree048ec8b781f1d3b45d29a1d862d724908d0d9785 /lib9p/srv.c
parent2774e918b6ced670f80036532052189d568e5c5c (diff)
parent2300ddae5f98180311419413d98fbc8384470665 (diff)
Merge branch 'lukeshu/qa'
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r--lib9p/srv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c
index 932cd4d..2475baf 100644
--- a/lib9p/srv.c
+++ b/lib9p/srv.c
@@ -81,7 +81,7 @@ struct _srv_fidinfo {
uint8_t flags;
uint32_t iounit;
size_t dir_idx;
- uint32_t dir_off;
+ uint64_t dir_off;
};
#define NAME fidmap
@@ -566,7 +566,7 @@ static void handle_Tversion(struct _lib9p_srv_req *ctx,
if (req->max_msg_size < min_msg_size) {
lib9p_errorf(&ctx->ctx.basectx,
LINUX_EDOM, "requested max_msg_size is less than minimum for %s (%"PRIu32" < %"PRIu32")",
- version, req->max_msg_size, min_msg_size);
+ lib9p_version_str(version), req->max_msg_size, min_msg_size);
return;
}
@@ -935,7 +935,7 @@ static void handle_Tread(struct _lib9p_srv_req *ctx,
idx = fidinfo->dir_idx;
else {
lib9p_errorf(&ctx->ctx.basectx,
- LINUX_EINVAL, "invalid offset (must be 0 or %"PRIu32"): %"PRIu32,
+ LINUX_EINVAL, "invalid offset (must be 0 or %"PRIu64"): %"PRIu64,
fidinfo->dir_off, req->offset);
return;
}