Fix: define _LGPL_SOURCE in C files
[lttng-tools.git] / src / bin / lttng / utils.c
index fc592ebdeee16f68df1a52ad9c0bf2b770ed8466..3cc254a3c9e40e8b5c5df5c64ebf942bacca82a0 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <assert.h>
 #include <stdlib.h>
 #include <ctype.h>
@@ -37,6 +38,7 @@ static const char *str_kernel = "Kernel";
 static const char *str_ust = "UST";
 static const char *str_jul = "JUL";
 static const char *str_log4j = "LOG4J";
+static const char *str_python = "Python";
 
 /*
  *  get_session_name
@@ -278,6 +280,9 @@ const char *get_domain_str(enum lttng_domain_type domain)
        case LTTNG_DOMAIN_LOG4J:
                str_dom = str_log4j;
                break;
+       case LTTNG_DOMAIN_PYTHON:
+               str_dom = str_python;
+               break;
        default:
                /* Should not have an unknown domain or else define it. */
                assert(0);
This page took 0.024293 seconds and 5 git commands to generate.