Better debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7786 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -47,15 +47,17 @@ pnp_notify_probe_by_module(pnp_node_info *node, const char *consumer_name)
|
|||||||
if (consumer->probe == NULL) {
|
if (consumer->probe == NULL) {
|
||||||
dprintf("Driver %s has no probe hook\n", consumer_name);
|
dprintf("Driver %s has no probe hook\n", consumer_name);
|
||||||
res = B_ERROR;
|
res = B_ERROR;
|
||||||
} else
|
} else {
|
||||||
res = consumer->probe(node);
|
res = consumer->probe(node);
|
||||||
|
TRACE(("Driver %s probe returned: %s\n", consumer_name, strerror(res)));
|
||||||
|
}
|
||||||
|
|
||||||
put_module(consumer_name);
|
put_module(consumer_name);
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
#ifdef TRACE_NOTIFICATIONS
|
#ifdef TRACE_NOTIFICATIONS
|
||||||
if (res != B_OK)
|
if (res != B_OK)
|
||||||
dprintf("%s\n", strerror(res));
|
dprintf("notify_probe_by_module: %s\n", strerror(res));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
@@ -454,7 +454,7 @@ pnp_probe_waiting_children_nolock(pnp_node_info *node)
|
|||||||
if (--node->defer_probing > 0 && node->unprobed_children != 0)
|
if (--node->defer_probing > 0 && node->unprobed_children != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
TRACE(("execute deferred probing of parent %p", node));
|
TRACE(("execute deferred probing of parent %p\n", node));
|
||||||
|
|
||||||
while (node->unprobed_children) {
|
while (node->unprobed_children) {
|
||||||
pnp_node_info *child = node->unprobed_children;
|
pnp_node_info *child = node->unprobed_children;
|
||||||
@@ -475,6 +475,8 @@ pnp_probe_waiting_children_nolock(pnp_node_info *node)
|
|||||||
// this is not necessary anymore
|
// this is not necessary anymore
|
||||||
pnp_remove_node_ref(node);
|
pnp_remove_node_ref(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TRACE((".. done.\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user