From 6cd7b7a7cabb0f0aba00da50ed2d62b1641e74d6 Mon Sep 17 00:00:00 2001 From: pooka Date: Thu, 19 Aug 2010 02:10:02 +0000 Subject: [PATCH] print more info in the "past eof" panic --- sys/miscfs/genfs/genfs_io.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/miscfs/genfs/genfs_io.c b/sys/miscfs/genfs/genfs_io.c index d7348d40dfe9..5e19bafbe53e 100644 --- a/sys/miscfs/genfs/genfs_io.c +++ b/sys/miscfs/genfs/genfs_io.c @@ -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 -__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 #include @@ -160,7 +160,8 @@ startover: #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 {