Log attach just like we log detach.

This commit is contained in:
Pawel Jakub Dawidek 2010-02-18 22:27:38 +00:00
parent 957d68dd91
commit e5131ab452
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204069

View File

@ -707,6 +707,7 @@ g_attach(struct g_consumer *cp, struct g_provider *pp)
g_topology_assert(); g_topology_assert();
G_VALID_CONSUMER(cp); G_VALID_CONSUMER(cp);
G_VALID_PROVIDER(pp); G_VALID_PROVIDER(pp);
g_trace(G_T_TOPOLOGY, "g_attach(%p, %p)", cp, pp);
KASSERT(cp->provider == NULL, ("attach but attached")); KASSERT(cp->provider == NULL, ("attach but attached"));
cp->provider = pp; cp->provider = pp;
LIST_INSERT_HEAD(&pp->consumers, cp, consumers); LIST_INSERT_HEAD(&pp->consumers, cp, consumers);