Mi & save/load: add option to indent or not on config writer creation
[lttng-tools.git] / src / common / mi-lttng.c
index e13342e835511deca29d53af8b1264f403961ef1..83df149f2bc5c2eb9583ed22854bea70350c1cff 100644 (file)
@@ -305,6 +305,8 @@ const char *mi_lttng_domaintype_string(enum lttng_domain_type value)
                return config_domain_type_ust;
        case LTTNG_DOMAIN_JUL:
                return config_domain_type_jul;
+       case LTTNG_DOMAIN_LOG4J:
+               return config_domain_type_log4j;
        default:
                /* Should not have an unknown domain */
                assert(0);
@@ -352,7 +354,7 @@ struct mi_writer *mi_lttng_writer_create(int fd_output, int mi_output_type)
                goto end;
        }
        if (mi_output_type == LTTNG_MI_XML) {
-               mi_writer->writer = config_writer_create(fd_output);
+               mi_writer->writer = config_writer_create(fd_output, 0);
                if (!mi_writer->writer) {
                        goto err_destroy;
                }
@@ -489,7 +491,7 @@ int mi_lttng_version(struct mi_writer *writer, struct mi_lttng_version *version,
 
        /* Version string (contain info like rc etc.) */
        ret = mi_lttng_writer_write_element_string(writer,
-                       mi_lttng_element_version_str, VERSION);
+                       mi_lttng_element_version_str, version->version);
        if (ret) {
                goto end;
        }
This page took 0.023881 seconds and 4 git commands to generate.