From 87ac8d11c23a1897aaa220d537cbc916a84238b4 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 24 Oct 2003 18:46:23 +0000 Subject: [PATCH] Fix two old/new consumer confusions. Submitted by: Pawel Jakub Dawidek --- sys/geom/geom_fox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/geom/geom_fox.c b/sys/geom/geom_fox.c index 1bc7dbec31a..3178649dba0 100644 --- a/sys/geom/geom_fox.c +++ b/sys/geom/geom_fox.c @@ -383,7 +383,7 @@ g_fox_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) */ LIST_FOREACH(gp2, &mp->geom, geom) { sc2 = gp2->softc; - if (sc == NULL) + if (sc2 == NULL) continue; if (memcmp(buf + 16, sc2->magic, sizeof sc2->magic)) continue; @@ -409,7 +409,7 @@ g_fox_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) */ printf( "WARNING: New path (%s) to fox(%s) not added: %s\n%s", - cp->provider->name, gp2->name, + cp2->provider->name, gp2->name, "Could not get exclusive bit.", "WARNING: This indicates a risk of data inconsistency." );