Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/genfs print more info in the "past eof" panic
details: https://anonhg.NetBSD.org/src/rev/e3d5457b45b1
branches: trunk
changeset: 757203:e3d5457b45b1
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Aug 19 02:10:02 2010 +0000
description:
print more info in the "past eof" panic
diffstat:
sys/miscfs/genfs/genfs_io.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r e78c61f95e35 -r e3d5457b45b1 sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c Thu Aug 19 02:07:11 2010 +0000
+++ b/sys/miscfs/genfs/genfs_io.c Thu Aug 19 02:10:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_io.c,v 1.38 2010/08/08 18:17:11 chs Exp $ */
+/* $NetBSD: genfs_io.c,v 1.39 2010/08/19 02:10:02 pooka Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.38 2010/08/08 18:17:11 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.39 2010/08/19 02:10:02 pooka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -160,7 +160,8 @@
#if defined(DIAGNOSTIC)
GOP_SIZE(vp, vp->v_writesize, &writeeof, GOP_SIZE_MEM);
if (newsize > round_page(writeeof)) {
- panic("%s: past eof", __func__);
+ panic("%s: past eof: %" PRId64 " vs. %" PRId64,
+ __func__, newsize, round_page(writeeof));
}
#endif /* defined(DIAGNOSTIC) */
} else {
Home |
Main Index |
Thread Index |
Old Index