print absolute inode number in debug output when freeing free inode occurs.

previously, the number was relative to the cylinder group, which was confusing.
prefix debug message with "ifree:" so this can be differentiated in bug reports.
This commit is contained in:
dbj 2004-10-11 17:15:36 +00:00
parent edfa669ef6
commit 2bd0f63fd0
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ffs_alloc.c,v 1.78 2004/08/29 10:13:48 hannken Exp $ */
/* $NetBSD: ffs_alloc.c,v 1.79 2004/10/11 17:15:36 dbj Exp $ */
/*
* Copyright (c) 2002 Networks Associates Technology, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.78 2004/08/29 10:13:48 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.79 2004/10/11 17:15:36 dbj Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@ -1806,8 +1806,8 @@ ffs_freefile(fs, devvp, ino, mode)
inosused = cg_inosused(cgp, needswap);
ino %= fs->fs_ipg;
if (isclr(inosused, ino)) {
printf("dev = 0x%x, ino = %d, fs = %s\n",
dev, ino, fs->fs_fsmnt);
printf("ifree: dev = 0x%x, ino = %d, fs = %s\n",
dev, ino + cg * fs->fs_ipg, fs->fs_fsmnt);
if (fs->fs_ronly == 0)
panic("ifree: freeing free inode");
}