mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 02:03:31 +00:00
Log attach just like we log detach.
This commit is contained in:
parent
957d68dd91
commit
e5131ab452
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204069
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user