Update loglevel names
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Feb 2012 15:07:13 +0000 (10:07 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Feb 2012 15:07:13 +0000 (10:07 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/bin/lttng/commands/enable_events.c
src/bin/lttng/commands/list.c

index c7b16488d8b38d69b8152840e27c55124d585be8..db0597dfbf1617cd1521931549e57e1680595e6e 100644 (file)
@@ -141,9 +141,11 @@ static void usage(FILE *ofp)
        fprintf(ofp, "    --loglevel-only name\n");
        fprintf(ofp, "                           Tracepoint loglevel (only this loglevel)\n");
        fprintf(ofp, "\n");
-       fprintf(ofp, "                    The loglevel or loglevel-only options should be combined\n");
-       fprintf(ofp, "                    with a tracepoint name (or tracepoint wildcard).\n");
-       fprintf(ofp, "                    Available loglevels: (higher value means more verbose)\n");
+       fprintf(ofp, "                           The loglevel or loglevel-only options should be\n");
+       fprintf(ofp, "                           combined with a tracepoint name or tracepoint\n");
+       fprintf(ofp, "                           wildcard.\n");
+       fprintf(ofp, "                           Available loglevels:\n");
+       fprintf(ofp, "                                              (higher value is more verbose)\n");
        fprintf(ofp, "                               TRACE_EMERG    = 0\n");
        fprintf(ofp, "                               TRACE_ALERT    = 1\n");
        fprintf(ofp, "                               TRACE_CRIT     = 2\n");
@@ -152,13 +154,13 @@ static void usage(FILE *ofp)
        fprintf(ofp, "                               TRACE_NOTICE   = 5\n");
        fprintf(ofp, "                               TRACE_INFO     = 6\n");
        fprintf(ofp, "                               TRACE_SYSTEM   = 7\n");
-       fprintf(ofp, "                               TRACE_PROCESS  = 8\n");
-       fprintf(ofp, "                               TRACE_MODULE   = 9\n");
-       fprintf(ofp, "                               TRACE_UNIT     = 10\n");
-       fprintf(ofp, "                               TRACE_CLASS    = 11\n");
-       fprintf(ofp, "                               TRACE_OBJECT   = 12\n");
-       fprintf(ofp, "                               TRACE_FUNCTION = 13\n");
-       fprintf(ofp, "                               TRACE_PRINTF   = 14\n");
+       fprintf(ofp, "                               TRACE_PROGRAM  = 8\n");
+       fprintf(ofp, "                               TRACE_PROCESS  = 9\n");
+       fprintf(ofp, "                               TRACE_MODULE   = 10\n");
+       fprintf(ofp, "                               TRACE_UNIT     = 11\n");
+       fprintf(ofp, "                               TRACE_FUNCTION = 12\n");
+       fprintf(ofp, "                               TRACE_DEFAULT  = 13\n");
+       fprintf(ofp, "                               TRACE_VERBOSE  = 14\n");
        fprintf(ofp, "                               TRACE_DEBUG    = 15\n");
        fprintf(ofp, "\n");
 }
@@ -231,24 +233,7 @@ end:
 }
 
 /*
- * Maps this from string to value
- *
- * TRACE_EMERG = 0,
- * TRACE_ALERT = 1,
- * TRACE_CRIT = 2,
- * TRACE_ERR = 3,
- * TRACE_WARNING = 4,
- * TRACE_NOTICE = 5,
- * TRACE_INFO = 6,
- * TRACE_SYSTEM = 7,
- * TRACE_PROCESS = 8,
- * TRACE_MODULE = 9,
- * TRACE_UNIT = 10,
- * TRACE_CLASS = 11,
- * TRACE_OBJECT = 12,
- * TRACE_FUNCTION = 13,
- * TRACE_PRINTF = 14,
- * TRACE_DEBUG = 15,
+ * Maps loglevel from string to value
  */
 static
 int loglevel_str_to_value(const char *str)
@@ -269,19 +254,19 @@ int loglevel_str_to_value(const char *str)
                return 6;
        } else if (!strcmp(str, "TRACE_SYSTEM")) {
                return 7;
-       } else if (!strcmp(str, "TRACE_PROCESS")) {
+       } else if (!strcmp(str, "TRACE_PROGRAM")) {
                return 8;
-       } else if (!strcmp(str, "TRACE_MODULE")) {
+       } else if (!strcmp(str, "TRACE_PROCESS")) {
                return 9;
-       } else if (!strcmp(str, "TRACE_UNIT")) {
+       } else if (!strcmp(str, "TRACE_MODULE")) {
                return 10;
-       } else if (!strcmp(str, "TRACE_CLASS")) {
+       } else if (!strcmp(str, "TRACE_UNIT")) {
                return 11;
-       } else if (!strcmp(str, "TRACE_OBJECT")) {
-               return 12;
        } else if (!strcmp(str, "TRACE_FUNCTION")) {
+               return 12;
+       } else if (!strcmp(str, "TRACE_DEFAULT")) {
                return 13;
-       } else if (!strcmp(str, "TRACE_PRINTF")) {
+       } else if (!strcmp(str, "TRACE_VERBOSE")) {
                return 14;
        } else if (!strcmp(str, "TRACE_DEBUG")) {
                return 15;
index c22206952160c7bc6e477d4250feed230ed99000..f915a16855f2dccbe2d924344febf77f74bda747 100644 (file)
@@ -176,13 +176,13 @@ static const char *loglevel_string(int value)
        case 5: return "TRACE_NOTICE";
        case 6: return "TRACE_INFO";
        case 7: return "TRACE_SYSTEM";
-       case 8: return "TRACE_PROCESS";
-       case 9: return "TRACE_MODULE";
-       case 10: return "TRACE_UNIT";
-       case 11: return "TRACE_CLASS";
-       case 12: return "TRACE_OBJECT";
-       case 13: return "TRACE_FUNCTION";
-       case 14: return "TRACE_PRINTF";
+       case 8: return "TRACE_PROGRAM";
+       case 9: return "TRACE_PROCESS";
+       case 10: return "TRACE_MODULE";
+       case 11: return "TRACE_UNIT";
+       case 12: return "TRACE_FUNCTION";
+       case 13: return "TRACE_DEFAULT";
+       case 14: return "TRACE_VERBOSE";
        case 15: return "TRACE_DEBUG";
        default: return "<<UNKNOWN>>";
        }
This page took 0.028276 seconds and 4 git commands to generate.