git: 0dac997f2434 - main - file: Fix a format string assertion
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Apr 2026 20:27:59 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=0dac997f2434a30785d71d7513b4ebfc3eecf0d7
commit 0dac997f2434a30785d71d7513b4ebfc3eecf0d7
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-04-16 20:21:51 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-04-16 20:27:46 +0000
file: Fix a format string assertion
Reported by: Jenkins
Fixes: e75b324c93a1 ("kern_descrip.c: Clarify allocation and freeing of fd map in fdgrowtable()")
---
sys/kern/kern_descrip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 -