diff options
author | pjd <pjd@FreeBSD.org> | 2013-05-19 23:29:22 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2013-05-19 23:29:22 +0000 |
commit | f9459837826c728e4db04462616a4f79bfb8dded (patch) | |
tree | d99a3a5f281cf141f4e4a6154120b29eba3dddf3 /sys/kern | |
parent | 06a477775d419c35b4a39c5e74a1aad10651e4af (diff) | |
download | FreeBSD-src-f9459837826c728e4db04462616a4f79bfb8dded.zip FreeBSD-src-f9459837826c728e4db04462616a4f79bfb8dded.tar.gz |
Use SDT_PROBE1() instead of SDT_PROBE().
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_priv.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/kern/kern_priv.c b/sys/kern/kern_priv.c index 2f70c2b..cd58adf 100644 --- a/sys/kern/kern_priv.c +++ b/sys/kern/kern_priv.c @@ -159,13 +159,10 @@ priv_check_cred(struct ucred *cred, int priv, int flags) */ error = EPERM; out: - if (error) { - SDT_PROBE(priv, kernel, priv_check, priv_err, priv, 0, 0, 0, - 0); - } else { - SDT_PROBE(priv, kernel, priv_check, priv_ok, priv, 0, 0, 0, - 0); - } + if (error) + SDT_PROBE1(priv, kernel, priv_check, priv_err, priv); + else + SDT_PROBE1(priv, kernel, priv_check, priv_ok, priv); return (error); } |