rem: printf("MediaAddonServer::ScanAddOnFlavors: couldn't register dormant node\n");
add: FATAL("MediaAddonServer::ScanAddOnFlavors: couldn't register dormant node\n");
context: MediaAddonServer::ScanAddOnFlavors(BMediaAddOn *addon){	int32 *flavorcount;	int32 oldflavorcount;	int32 newflavorcount;	media_addon_id addon_id;	port_id port;	status_t rv;	bool b;		ASSERT(addon);	ASSERT(addon->AddonID() > 0);		printf("MediaAddonServer::ScanAddOnFlavors: id %ld\n",addon->AddonID());		port = find_port("media_server port");	if (port <= B_OK) {		printf("couldn't find media_server port\n");		return;	}		// cache the media_addon_id in a local variable to avoid	// calling BMediaAddOn::AddonID() too often	addon_id = addon->AddonID();		// update the cached flavor count, get oldflavorcount and newflavorcount	b = flavorcountmap->GetPointer(addon->AddonID(), &flavorcount);	ASSERT(b);	oldflavorcount = *flavorcount;	newflavorcount = addon->CountFlavors();	*flavorcount = newflavorcount;		printf("%ld old flavors, %ld new flavors\n", oldflavorcount, newflavorcount);	// during the first update (i == 0), the server removes old dormant_flavor_infos	for (int i = 0; i < newflavorcount; i++) {		const flavor_info *info;		printf("flavor %d:\n",i);		if (B_OK != addon->GetFlavorAt(i, &info)) {			printf("failed!\n");			continue;		}				DumpFlavorInfo(info);				dormant_flavor_info dfi;		dfi = *info;		dfi.node_info.addon = addon_id;		dfi.node_info.flavor_id = info->internal_id;		strncpy(dfi.node_info.name, info->name, B_MEDIA_NAME_LENGTH - 1);		dfi.node_info.name[B_MEDIA_NAME_LENGTH - 1] = 0;				xfer_server_register_dormant_node *msg;		size_t flattensize;		size_t msgsize;				flattensize = dfi.FlattenedSize();		msgsize = flattensize + sizeof(xfer_server_register_dormant_node);		msg = (xfer_server_register_dormant_node *) malloc(msgsize);				// the server should remove previously registered "dormant_flavor_info"s		// during the first update, but after  the first iteration, we don't want		// the server to anymore remove old dormant_flavor_infos;		msg->purge_id = (i == 0) ? addon_id : 0;		msg->dfi_type = dfi.TypeCode();		msg->dfi_size = flattensize;		dfi.Flatten(&(msg->dfi),flattensize);		rv = write_port(port, SERVER_REGISTER_DORMANT_NODE, msg, msgsize);		if (rv != B_OK) {			printf("MediaAddonServer::ScanAddOnFlavors: couldn't register dormant node\n");		}		free(msg);	}	// XXX parameter list is (media_addon_id addonid, int32 newcount, int32 gonecount)	// XXX we currently pretend that all old flavors have been removed, this could	// XXX probably be done in a smarter way	BPrivate::media::notifications::FlavorsChanged(addon_id, newflavorcount, oldflavorcount);}