added more debug information

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2218 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2002-12-10 18:18:50 +00:00
parent a3d1f07f83
commit ced4130fee
11 changed files with 159 additions and 27 deletions
+15
View File
@@ -4,6 +4,7 @@
*/
#include <OS.h>
#include <Locker.h>
#include <Autolock.h>
#include <Message.h>
#include <Messenger.h>
#include <MediaNode.h>
@@ -249,3 +250,17 @@ NotificationManager::worker_thread(void *arg)
static_cast<NotificationManager *>(arg)->WorkerThread();
return 0;
}
void
NotificationManager::Dump()
{
BAutolock lock(fLocker);
printf("\n");
printf("NotificationManager: list of subscribers follows:\n");
Notification *n;
for (fNotificationList->Rewind(); fNotificationList->GetNext(&n); ) {
printf(" team %ld, what %#08x, node-id %ld, node-port %ld, messenger %svalid\n",
n->team, n->what, n->node.node, n->node.port, n->messenger.IsValid() ? "" : "NOT ");
}
printf("NotificationManager: list end\n");
}