Bug #766

Fix msdosfs build errors/warnings when MSDOSFS_DEBUG defined

Added by nthery over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hello,

Here is a patch fixing build errors and warnings when MSDOSFS_DEBUG is defined.

Cheers,
Nicolas

Index: dfly/src/sys/vfs/msdosfs/msdosfs_denode.c
===================================================================
--- dfly.orig/src/sys/vfs/msdosfs/msdosfs_denode.c 2007-08-03
23:51:09.000000000 +0200
+++ dfly/src/sys/vfs/msdosfs/msdosfs_denode.c 2007-08-07
14:24:07.501391000 +0200
@@ -666,7 +666,7 @@

#ifdef MSDOSFS_DEBUG
kprintf("msdosfs_reclaim(): dep %p, file %s, refcnt %ld\n",
- dep, dep ? dep->de_Name : "?", dep ? dep->de_refcnt : -1);
+ dep, dep ? (char *)dep->de_Name : "?", dep ? dep->de_refcnt : -1);
#endif

if (prtactive && vp->v_sysref.refcnt > 1)
Index: dfly/src/sys/vfs/msdosfs/msdosfs_vfsops.c
===================================================================
--- dfly.orig/src/sys/vfs/msdosfs/msdosfs_vfsops.c 2007-06-14
04:55:27.000000000 +0200
+++ dfly/src/sys/vfs/msdosfs/msdosfs_vfsops.c 2007-08-07
14:26:44.000000000 +0200
@@ -655,16 +655,17 @@
struct vnode *vp = pmp->pm_devvp;

kprintf("msdosfs_umount(): just before calling VOP_CLOSE()\n");
- kprintf("flag %08lx, sysrefs %d, writecount %d, auxrefs %ld\n",
+ kprintf("flag %08x, sysrefs %d, writecount %d, auxrefs %d\n",
vp->v_flag, vp->v_sysref.refcnt,
vp->v_writecount, vp->v_auxrefs);
- kprintf("mount %p, op %p\n", vp->v_mount, vp->v_op);
+ kprintf("mount %p, op %p\n", vp->v_mount, vp->v_ops);
kprintf("freef %p, freeb %p, mount %p\n",
- TAILQ_NEXT(vp, v_freelist), TAILQ_PREV(vp, v_freelist),
+ TAILQ_NEXT(vp, v_freelist),
+ *vp->v_freelist.tqe_prev,
vp->v_mount);
- kprintf("cleanblkhd %p, dirtyblkhd %p, numoutput %ld, type %d\n",
- RB_EMPTY(&vp->v_rbclean_tree),
- RB_EMPTY(&vp->v_rbdirty_tree),
+ kprintf("cleanblkhd %p, dirtyblkhd %p, numoutput %d, type %d\n",
+ RB_ROOT(&vp->v_rbclean_tree),
+ RB_ROOT(&vp->v_rbdirty_tree),
vp->v_track_write.bk_active, vp->v_type);
kprintf("union %p, tag %d, data[0] %08x, data[1] %08x\n",
vp->v_socket, vp->v_tag,

History

#1 Updated by dillon over 6 years ago

:Hello,
:
:Here is a patch fixing build errors and warnings when MSDOSFS_DEBUG is defined.
:
:Cheers,
:Nicolas

Committed!

-Matt

Also available in: Atom PDF