mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 13:44:55 +00:00
socket: Only log splice structs to ktrace if KTR_STRUCT is configured
Fixes: a1da7dc1cd
("socket: Implement SO_SPLICE")
This commit is contained in:
parent
75cd1e534c
commit
283bf3b4b1
|
@ -3955,7 +3955,8 @@ sosetopt(struct socket *so, struct sockopt *sopt)
|
|||
if (error)
|
||||
goto bad;
|
||||
#ifdef KTRACE
|
||||
ktrsplice(&splice);
|
||||
if (KTRPOINT(curthread, KTR_STRUCT))
|
||||
ktrsplice(&splice);
|
||||
#endif
|
||||
|
||||
error = splice_init();
|
||||
|
|
Loading…
Reference in a new issue