minor knf
This commit is contained in:
parent
0b98e26158
commit
22ba08b022
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: lfs_debug.c,v 1.37 2008/04/28 20:24:11 martin Exp $ */
|
/* $NetBSD: lfs_debug.c,v 1.38 2009/07/19 04:16:23 dholland Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
|
||||||
@ -60,7 +60,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: lfs_debug.c,v 1.37 2008/04/28 20:24:11 martin Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: lfs_debug.c,v 1.38 2009/07/19 04:16:23 dholland Exp $");
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
||||||
@ -82,9 +82,11 @@ __KERNEL_RCSID(0, "$NetBSD: lfs_debug.c,v 1.37 2008/04/28 20:24:11 martin Exp $"
|
|||||||
int lfs_lognum;
|
int lfs_lognum;
|
||||||
struct lfs_log_entry lfs_log[LFS_LOGLENGTH];
|
struct lfs_log_entry lfs_log[LFS_LOGLENGTH];
|
||||||
|
|
||||||
int lfs_bwrite_log(struct buf *bp, const char *file, int line)
|
int
|
||||||
|
lfs_bwrite_log(struct buf *bp, const char *file, int line)
|
||||||
{
|
{
|
||||||
struct vop_bwrite_args a;
|
struct vop_bwrite_args a;
|
||||||
|
|
||||||
a.a_desc = VDESC(vop_bwrite);
|
a.a_desc = VDESC(vop_bwrite);
|
||||||
a.a_bp = bp;
|
a.a_bp = bp;
|
||||||
|
|
||||||
@ -95,7 +97,8 @@ int lfs_bwrite_log(struct buf *bp, const char *file, int line)
|
|||||||
return (VCALL(bp->b_vp, VOFFSET(vop_bwrite), &a));
|
return (VCALL(bp->b_vp, VOFFSET(vop_bwrite), &a));
|
||||||
}
|
}
|
||||||
|
|
||||||
void lfs_dumplog(void)
|
void
|
||||||
|
lfs_dumplog(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const char *cp;
|
const char *cp;
|
||||||
|
Loading…
Reference in New Issue
Block a user