diff options
author | trociny <trociny@FreeBSD.org> | 2011-03-30 21:40:14 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2011-03-30 21:40:14 +0000 |
commit | 0d8889331268513fb67163106bca98ffe96409de (patch) | |
tree | 224d35bc7953ff6791f3342254bd21b0938f93a6 | |
parent | ddcfce408bd0de88c378873d52cd36e8addda595 (diff) | |
download | FreeBSD-src-0d8889331268513fb67163106bca98ffe96409de.zip FreeBSD-src-0d8889331268513fb67163106bca98ffe96409de.tar.gz |
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
-rw-r--r-- | sys/geom/gate/g_gate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c index 1eb02b6..d399c82 100644 --- a/sys/geom/gate/g_gate.c +++ b/sys/geom/gate/g_gate.c @@ -136,7 +136,7 @@ g_gate_destroy(struct g_gate_softc *sc, boolean_t force) 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 *ggio) 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, |