1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Fix LINT building.

Sponsored by:	Microsoft
This commit is contained in:
Sepherosa Ziehau 2016-09-18 07:37:00 +00:00
parent 9cd70b19ae
commit a5ec35dfee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305922

View File

@ -83,7 +83,9 @@ __FBSDID("$FreeBSD$");
#ifdef LOCKF_DEBUG
#include <sys/sysctl.h>
#include <ufs/ufs/extattr.h>
#include <ufs/ufs/quota.h>
#include <ufs/ufs/ufsmount.h>
#include <ufs/ufs/inode.h>
static int lockf_debug = 0; /* control debug output */
@ -2500,7 +2502,7 @@ lf_print(char *tag, struct lockf_entry *lock)
if (lock->lf_inode != (struct inode *)0)
printf(" in ino %ju on dev <%s>,",
(uintmax_t)lock->lf_inode->i_number,
devtoname(lock->lf_inode->i_dev));
devtoname(ITODEV(lock->lf_inode)));
printf(" %s, start %jd, end ",
lock->lf_type == F_RDLCK ? "shared" :
lock->lf_type == F_WRLCK ? "exclusive" :
@ -2528,7 +2530,7 @@ lf_printlist(char *tag, struct lockf_entry *lock)
printf("%s: Lock list for ino %ju on dev <%s>:\n",
tag, (uintmax_t)lock->lf_inode->i_number,
devtoname(lock->lf_inode->i_dev));
devtoname(ITODEV(lock->lf_inode)));
LIST_FOREACH(lf, &lock->lf_vnode->v_lockf->ls_active, lf_link) {
printf("\tlock %p for ",(void *)lf);
lf_print_owner(lock->lf_owner);