diff options
| author | Ryan Libby <rlibby@FreeBSD.org> | 2025-10-15 04:03:04 +0000 |
|---|---|---|
| committer | Ryan Libby <rlibby@FreeBSD.org> | 2025-10-15 04:03:04 +0000 |
| commit | a0ea4c04b5269ac138a3cf551047076472c6028e (patch) | |
| tree | 6307961e307f8020784e9af2b0947f2272f8c455 | |
| parent | 68501a93076ac095be7a96ecd55d15287c497c9d (diff) | |
ffs_truncate: correct INVARIANTS panic debug output
Reported by: GCC -Warray-bounds
Reviewed by: mckusick
Differential Revision: https://reviews.freebsd.org/D53037
| -rw-r--r-- | sys/ufs/ffs/ffs_inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c index 970536a13aa5..f47cfd08f75a 100644 --- a/sys/ufs/ffs/ffs_inode.c +++ b/sys/ufs/ffs/ffs_inode.c @@ -653,8 +653,8 @@ done: for (i = 0; i < UFS_NDADDR; i++) if (newblks[i] != DIP(ip, i_db[i])) panic("ffs_truncate2: blkno %d newblks %jd != i_db %jd", - i, (intmax_t)newblks[UFS_NDADDR + level], - (intmax_t)DIP(ip, i_ib[level])); + i, (intmax_t)newblks[i], + (intmax_t)DIP(ip, i_db[i])); BO_LOCK(bo); if (length == 0 && (fs->fs_magic != FS_UFS2_MAGIC || ip->i_din2->di_extsize == 0) && |
