Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2013 23:29:22 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250817 - head/sys/kern
Message-ID:  <201305192329.r4JNTM4F091261@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Sun May 19 23:29:22 2013
New Revision: 250817
URL: http://svnweb.freebsd.org/changeset/base/250817

Log:
  Use SDT_PROBE1() instead of SDT_PROBE().

Modified:
  head/sys/kern/kern_priv.c

Modified: head/sys/kern/kern_priv.c
==============================================================================
--- head/sys/kern/kern_priv.c	Sun May 19 23:28:28 2013	(r250816)
+++ head/sys/kern/kern_priv.c	Sun May 19 23:29:22 2013	(r250817)
@@ -159,13 +159,10 @@ priv_check_cred(struct ucred *cred, int 
 	 */
 	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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305192329.r4JNTM4F091261>