Date: Wed, 31 Jan 2007 01:13:53 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 113742 for review Message-ID: <200701310113.l0V1DrXN014592@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113742 Change 113742 by rwatson@rwatson_cinnamon on 2007/01/31 01:13:02 Correct panic messages; in some cases panic instead of returning ENOTTY as that point shouldn't be reached. Affected files ... .. //depot/projects/zcopybpf/src/sys/net/bpf.c#4 edit Differences ... ==== //depot/projects/zcopybpf/src/sys/net/bpf.c#4 (text+ko) ==== @@ -252,7 +252,7 @@ #ifdef BPF_ZEROCOPY return (bpf_zerocopy_ioctl_ackzbuf(td, d, bz)); #else - panic("bpf_ioctl_getznext"); + panic("bpf_ioctl_ackzbuf"); #endif } @@ -265,7 +265,7 @@ #ifdef BPF_ZEROCOPY return (bpf_zerocopy_ioctl_getzbuf(td, d, bz)); #else - panic("bpf_ioctl_getznext"); + panic("bpf_ioctl_getzbuf"); #endif } @@ -291,7 +291,7 @@ #ifdef BPF_ZEROCOPY return (bpf_zerocopy_ioctl_getzmax(td, d, i)); #else - return (ENOTTY); + panic("bpf_ioctl_getzmax"); #endif } @@ -304,7 +304,7 @@ #ifdef BPF_ZEROCOPY return (bpf_zerocopy_ioctl_setzbuf(td, d, bz)); #else - return (ENOTTY); + panic("bpf_ioctl_setzbuf"); #endif }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701310113.l0V1DrXN014592>