Project

General

Profile

Actions

Bug #766

closed

Fix msdosfs build errors/warnings when MSDOSFS_DEBUG defined

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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 @ ===================================================================
--- 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,
Actions #1

Updated by dillon over 16 years ago

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

Committed!
-Matt
Actions

Also available in: Atom PDF