Convert more printf to TRACE in media kit.

This commit is contained in:
Adrien Destugues
2014-04-27 18:03:03 +02:00
parent 502882dbd9
commit cb2c4f8d44
3 changed files with 2 additions and 4 deletions
-2
View File
@@ -178,8 +178,6 @@ FormatManager::GetFormats(bigtime_t lastUpdate, BMessage& reply)
reply.AddInt64("timestamp", system_time()); reply.AddInt64("timestamp", system_time());
int32 count = fList.CountItems(); int32 count = fList.CountItems();
printf("FormatManager::GetFormats(): put %" B_PRId32 " formats into "
"message\n", count);
for (int32 i = 0; i < count; i++) { for (int32 i = 0; i < count; i++) {
meta_format* format = fList.ItemAt(i); meta_format* format = fList.ItemAt(i);
reply.AddData("formats", MEDIA_META_FORMAT_TYPE, format, reply.AddData("formats", MEDIA_META_FORMAT_TYPE, format,
+1 -1
View File
@@ -777,7 +777,7 @@ BMediaRoster::ReleaseNode(const media_node& node)
return B_MEDIA_BAD_NODE; return B_MEDIA_BAD_NODE;
if (node.kind & NODE_KIND_NO_REFCOUNTING) { if (node.kind & NODE_KIND_NO_REFCOUNTING) {
printf("BMediaRoster::ReleaseNode, trying to release reference " TRACE("BMediaRoster::ReleaseNode, trying to release reference "
"counting disabled timesource, node %" B_PRId32 ", port %" B_PRId32 "counting disabled timesource, node %" B_PRId32 ", port %" B_PRId32
", team %" B_PRId32 "\n", node.node, node.port, ", team %" B_PRId32 "\n", node.node, node.port,
BPrivate::current_team()); BPrivate::current_team());
+1 -1
View File
@@ -328,7 +328,7 @@ PluginManager::~PluginManager()
for (int i = fPluginList.CountItems() - 1; i >= 0; i--) { for (int i = fPluginList.CountItems() - 1; i >= 0; i--) {
plugin_info* info = NULL; plugin_info* info = NULL;
fPluginList.Get(i, &info); fPluginList.Get(i, &info);
printf("PluginManager: Error, unloading PlugIn %s with usecount " TRACE("PluginManager: Error, unloading PlugIn %s with usecount "
"%d\n", info->name, info->usecount); "%d\n", info->name, info->usecount);
delete info->plugin; delete info->plugin;
unload_add_on(info->image); unload_add_on(info->image);