From 86e5a3fc635d49d7bece11879aecfa8c989f976a Mon Sep 17 00:00:00 2001 From: anton Date: Sat, 21 Jul 2018 09:35:08 +0000 Subject: [PATCH] Include the vnode type in the panic message in ffs_write(), just like ffs_read() does. ok deraadt@ kettenis@ --- sys/ufs/ffs/ffs_vnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1