Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2011 21:40:14 +0000 (UTC)
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r220173 - head/sys/geom/gate
Message-ID:  <201103302140.p2ULeE6G081778@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trociny
Date: Wed Mar 30 21:40:14 2011
New Revision: 220173
URL: http://svn.freebsd.org/changeset/base/220173

Log:
  Increase debug level on g_gate device destruction and add message on
  device creation.
  
  Suggested by:	danger
  Approved by:	pjd (mentor)
  MFC after:	3 days

Modified:
  head/sys/geom/gate/g_gate.c

Modified: head/sys/geom/gate/g_gate.c
==============================================================================
--- head/sys/geom/gate/g_gate.c	Wed Mar 30 21:33:23 2011	(r220172)
+++ head/sys/geom/gate/g_gate.c	Wed Mar 30 21:40:14 2011	(r220173)
@@ -136,7 +136,7 @@ g_gate_destroy(struct g_gate_softc *sc, 
 	mtx_unlock(&g_gate_units_lock);
 	mtx_destroy(&sc->sc_queue_mtx);
 	g_topology_lock();
-	G_GATE_DEBUG(0, "Device %s destroyed.", gp->name);
+	G_GATE_DEBUG(1, "Device %s destroyed.", gp->name);
 	gp->softc = NULL;
 	g_wither_geom(gp, ENXIO);
 	sc->sc_provider = NULL;
@@ -438,6 +438,7 @@ g_gate_create(struct g_gate_ctl_create *
 	mtx_lock(&g_gate_units_lock);
 	sc->sc_name = sc->sc_provider->name;
 	mtx_unlock(&g_gate_units_lock);
+	G_GATE_DEBUG(1, "Device %s created.", gp->name);
 
 	if (sc->sc_timeout > 0) {
 		callout_reset(&sc->sc_callout, sc->sc_timeout * hz,



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