msdosfs: fix debug print format and parameter

Building with -DMSDOSFS_DEBUG failed due to a format mismatch and
a variable that has been renamed but not updated in the printf()
parameter list.

MFC after:	1 month
This commit is contained in:
Stefan Eßer 2023-03-08 17:58:00 +01:00
parent d936c29ec0
commit 2d8cf575d5
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ deget(struct msdosfsmount *pmp, u_long dirclust, u_long diroffset,
#ifdef MSDOSFS_DEBUG
printf("deget(pmp %p, dirclust %lu, diroffset %lx, flags %#x, "
"depp %p)\n",
pmp, dirclust, diroffset, flags, depp);
pmp, dirclust, diroffset, lkflags, depp);
#endif
MPASS((lkflags & LK_TYPE_MASK) == LK_EXCLUSIVE);

View file

@ -335,7 +335,7 @@ msdosfs_lookup_ino(struct vnode *vdp, struct vnode **vpp, struct componentname
continue;
}
#ifdef MSDOSFS_DEBUG
printf("msdosfs_lookup(): match blkoff %d, diroff %d\n",
printf("msdosfs_lookup(): match blkoff %lu, diroff %d\n",
blkoff, diroff);
#endif
/*