aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-04-16 20:21:51 +0000
committerMark Johnston <markj@FreeBSD.org>2026-04-16 20:27:46 +0000
commit0dac997f2434a30785d71d7513b4ebfc3eecf0d7 (patch)
tree5b6868472117c89288919844c9f7aa1f325cb78b
parentbebc1a5b09e358b420077a1b5c0f85f8e7f0812f (diff)
file: Fix a format string assertion
Reported by: Jenkins Fixes: e75b324c93a1 ("kern_descrip.c: Clarify allocation and freeing of fd map in fdgrowtable()")
-rw-r--r--sys/kern/kern_descrip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 69985c39c3c0..48303926759b 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -2009,7 +2009,7 @@ fdgrowtable(struct filedesc *fdp, int nfd)
KASSERT(fdp->fd_nfiles >= NDFILE, ("file table of length %d shorter "
"than NDFILE (%d)", fdp->fd_nfiles, NDFILE));
KASSERT(fdp->fd_nfiles == NDFILE || fdp->fd_nfiles % NDENTRIES == 0,
- ("file table of length %d should be multiple of NDENTRIES (%lu)",
+ ("file table of length %d should be multiple of NDENTRIES (%zu)",
fdp->fd_nfiles, NDENTRIES));
KASSERT((fdp->fd_nfiles == NDFILE) == ((intptr_t)fdp->fd_files -
offsetof(struct filedesc0, fd_dfiles) == (intptr_t)fdp -