Support new lttng-ust error code
[lttng-tools.git] / src / bin / lttng-sessiond / filter.c
index f0acffdc1dfc3287f6892253f59bc862711cd80c..e887533050f8a5f298bbcd7944f63fac59eef416 100644 (file)
@@ -155,17 +155,21 @@ int filter_ust_set(struct ltt_ust_session *usess, int domain,
        }
 
 end:
+       /* Must handle both local internal error and UST code. */
        switch (ret) {
        case -EEXIST:
+       case -LTTNG_UST_ERR_EXIST:
                ret = LTTNG_ERR_FILTER_EXIST;
                break;
        case -ENOMEM:
                ret = LTTNG_ERR_FATAL;
                break;
        case -EINVAL:
+       case -LTTNG_UST_ERR_INVAL:
                ret = LTTNG_ERR_FILTER_INVAL;
                break;
        case -ENOSYS:
+       case -LTTNG_UST_ERR_NOSYS:
                ret = LTTNG_ERR_UNKNOWN_DOMAIN;
                break;
        default:
This page took 0.024105 seconds and 4 git commands to generate.