In ktrwrite, use uio_procp = curproc vs 0

This commit is contained in:
Robert V. Baron 1998-12-10 01:47:41 +00:00
parent 4b62fdebb8
commit efb73e5aca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41628

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)kern_ktrace.c 8.2 (Berkeley) 9/23/93
* $Id: kern_ktrace.c,v 1.23 1998/02/20 13:37:38 bde Exp $
* $Id: kern_ktrace.c,v 1.24 1998/11/10 09:16:29 peter Exp $
*/
#include "opt_ktrace.h"
@ -473,7 +473,7 @@ ktrwrite(vp, kth)
aiov[0].iov_len = sizeof(struct ktr_header);
auio.uio_resid = sizeof(struct ktr_header);
auio.uio_iovcnt = 1;
auio.uio_procp = (struct proc *)0;
auio.uio_procp = curproc;
if (kth->ktr_len > 0) {
auio.uio_iovcnt++;
aiov[1].iov_base = kth->ktr_buf;