Module Name: src Committed By: pooka Date: Thu Aug 19 02:10:02 UTC 2010
Modified Files: src/sys/miscfs/genfs: genfs_io.c Log Message: print more info in the "past eof" panic To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/miscfs/genfs/genfs_io.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/miscfs/genfs/genfs_io.c diff -u src/sys/miscfs/genfs/genfs_io.c:1.38 src/sys/miscfs/genfs/genfs_io.c:1.39 --- src/sys/miscfs/genfs/genfs_io.c:1.38 Sun Aug 8 18:17:11 2010 +++ src/sys/miscfs/genfs/genfs_io.c Thu Aug 19 02:10:02 2010 @@ -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 {