int ret;
struct ltt_ust_session *usess = session->ust_session;
- DBG("Enabling channel %s for session %s", session->name, attr->name);
+ DBG("Enabling channel %s for session %s", attr->name, session->name);
switch (domain->type) {
case LTTNG_DOMAIN_KERNEL:
/* Add channel to all registered applications */
ret = ust_app_add_channel_all(usess, uchan);
- if (ret != LTTCOMM_OK) {
+ if (ret != 0) {
goto error;
}