rem: dprintf("layers_manager: '%s' layer, registering %s/%s type\n", layer->name, layer->type, layer->sub_type);
add: dprintf("layers_manager: '%s' layer, registering %s/%s type\n", layer->name, string_for_token(layer->type), string_for_token(layer->sub_type));
context: status_t register_layer(const char *name, const char *type, int priority,	net_layer_module_info *module, void *cookie, net_layer **_layer){	status_t status;	module_info *dummy;	net_layer *layer;	if (name == NULL ||		strlen(name) <= 0 ||		module == NULL)		return B_ERROR;		layer = new_layer(name, type, priority, module, cookie);	if (!layer)		return B_NO_MEMORY;		// acquire this module, to keep it loaded while this layer is registered	status = get_module(module->info.name, &dummy);	if (status != B_OK)		goto error1;	status = acquire_sem(g_layers.lock);	if (status != B_OK)		goto error2;			layer->next = g_layers.first;	g_layers.first = layer;		release_sem(g_layers.lock);			dprintf("layers_manager: '%s' layer, registering %s/%s type\n", layer->name, layer->type, layer->sub_type);		if (_layer)		*_layer = layer;	return B_OK;error2:	put_module(module->info.name);error1:	return status;}