summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-10-24 18:46:23 +0000
committerphk <phk@FreeBSD.org>2003-10-24 18:46:23 +0000
commit1fd6c526e3c8ecbaa29030ecd03a5762627f7c84 (patch)
treee1f9e577079048cdf2a606dffda640101b928470 /sys/geom
parentbb36ba66842b19eb517eb65fd51c7c10df174976 (diff)
downloadFreeBSD-src-1fd6c526e3c8ecbaa29030ecd03a5762627f7c84.zip
FreeBSD-src-1fd6c526e3c8ecbaa29030ecd03a5762627f7c84.tar.gz
Fix two old/new consumer confusions.
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_fox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_fox.c b/sys/geom/geom_fox.c
index 1bc7dbe..3178649 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."
);
OpenPOWER on IntegriCloud