Fix: add UST context in the same order the user enabled them
[lttng-tools.git] / src / bin / lttng / commands / add_context.c
index fad85b50aa5c263fa108f0faae44fa9936e4ed20..6286ed8a0a1838e49c4592e5770e02c4ab7f16df 100644 (file)
@@ -480,7 +480,7 @@ int cmd_add_context(int argc, const char **argv)
                                ret = CMD_ERROR;
                                goto end;
                        } else {
-                               cds_list_add(&type->list, &ctx_type_list.head);
+                               cds_list_add_tail(&type->list, &ctx_type_list.head);
                        }
                        break;
                case OPT_USERSPACE:
This page took 0.023459 seconds and 4 git commands to generate.