From: anton Date: Sat, 21 Jul 2018 09:35:08 +0000 (+0000) Subject: Include the vnode type in the panic message in ffs_write(), just like ffs_read() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=86e5a3fc635d49d7bece11879aecfa8c989f976a;p=openbsd Include the vnode type in the panic message in ffs_write(), just like ffs_read() does. ok deraadt@ kettenis@ --- diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index 99aeed83fd4..09ca4bd0914 100644 --- a/sys/ufs/ffs/ffs_vnops.c +++ b/sys/ufs/ffs/ffs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_vnops.c,v 1.91 2018/07/02 20:56:22 bluhm Exp $ */ +/* $OpenBSD: ffs_vnops.c,v 1.92 2018/07/21 09:35:08 anton Exp $ */ /* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */ /* @@ -315,7 +315,7 @@ ffs_write(void *v) panic("ffs_write: nonsync dir write"); break; default: - panic("ffs_write: type"); + panic("ffs_write: type %d", vp->v_type); } fs = ip->i_fs;