Print the correct pointer in a KASSERT.

Submitted by:	Pawel Jakub Dawidek <nick@garage.freebsd.pl>
This commit is contained in:
Poul-Henning Kamp 2004-01-11 10:02:42 +00:00
parent 6c021e3150
commit cbb650409c

View file

@ -236,7 +236,7 @@ g_destroy_geom(struct g_geom *gp)
gp->name, LIST_FIRST(&gp->consumer)));
KASSERT(LIST_EMPTY(&gp->provider),
("g_destroy_geom(%s) with provider(s) [%p]",
gp->name, LIST_FIRST(&gp->consumer)));
gp->name, LIST_FIRST(&gp->provider)));
g_cancel_event(gp);
LIST_REMOVE(gp, geom);
TAILQ_REMOVE(&geoms, gp, geoms);