Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2018 16:29:24 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340884 - head/sys/dev/sfxge/common
Message-ID:  <201811241629.wAOGTOSQ085443@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Sat Nov 24 16:29:23 2018
New Revision: 340884
URL: https://svnweb.freebsd.org/changeset/base/340884

Log:
  sfxge(4): fix probes in licensing support
  
  EFSYS_PROBE1 takes one typed value (in addition to the probe name),
  whereas EFSYS_PROBE has just the probe name.
  
  Which to use is determined by the probe name - "fail1" probes are
  expected to include the function result.
  
  Submitted by:   Mark Spender <mspender at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.
  MFC after:      1 week
  Differential Revision:  https://reviews.freebsd.org/D18118

Modified:
  head/sys/dev/sfxge/common/efx_lic.c

Modified: head/sys/dev/sfxge/common/efx_lic.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_lic.c	Sat Nov 24 16:29:11 2018	(r340883)
+++ head/sys/dev/sfxge/common/efx_lic.c	Sat Nov 24 16:29:23 2018	(r340884)
@@ -501,7 +501,7 @@ efx_lic_v1v2_find_key(
 	return (found);
 
 fail1:
-	EFSYS_PROBE(fail1);
+	EFSYS_PROBE1(fail1, boolean_t, B_FALSE);
 
 	return (B_FALSE);
 }
@@ -543,7 +543,7 @@ fail3:
 fail2:
 	EFSYS_PROBE(fail2);
 fail1:
-	EFSYS_PROBE(fail1);
+	EFSYS_PROBE1(fail1, boolean_t, B_FALSE);
 
 	return (B_FALSE);
 }
@@ -1161,7 +1161,7 @@ fail3:
 fail2:
 	EFSYS_PROBE(fail2);
 fail1:
-	EFSYS_PROBE(fail1);
+	EFSYS_PROBE1(fail1, boolean_t, B_FALSE);
 
 	return (B_FALSE);
 }



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