Better debug output.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7786 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-06-07 01:35:53 +00:00
parent 8a0d571192
commit a6426a42d7
2 changed files with 7 additions and 3 deletions
@@ -47,15 +47,17 @@ pnp_notify_probe_by_module(pnp_node_info *node, const char *consumer_name)
if (consumer->probe == NULL) {
dprintf("Driver %s has no probe hook\n", consumer_name);
res = B_ERROR;
} else
} else {
res = consumer->probe(node);
TRACE(("Driver %s probe returned: %s\n", consumer_name, strerror(res)));
}
put_module(consumer_name);
exit:
#ifdef TRACE_NOTIFICATIONS
if (res != B_OK)
dprintf("%s\n", strerror(res));
dprintf("notify_probe_by_module: %s\n", strerror(res));
#endif
return res;
@@ -454,7 +454,7 @@ pnp_probe_waiting_children_nolock(pnp_node_info *node)
if (--node->defer_probing > 0 && node->unprobed_children != 0)
return;
TRACE(("execute deferred probing of parent %p", node));
TRACE(("execute deferred probing of parent %p\n", node));
while (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
pnp_remove_node_ref(node);
}
TRACE((".. done.\n"));
}