Pre-assign fixed loglevels
[lttng-ust.git] / tests / demo / ust_tests_demo.h
index 355867d2eb6d1c68fb5ffca6af1a2dd810190cef..7740d98c6f93aa7b684870bbb0552cca472ce883 100644 (file)
@@ -23,19 +23,13 @@ extern "C" {
 
 #include <lttng/tracepoint.h>
 
-TRACEPOINT_LOGLEVEL_ENUM(
-       tp_loglevel(critical, 0)
-       tp_loglevel(warning, 1)
-       tp_loglevel(debug, 2)
-)
-
 TRACEPOINT_EVENT(ust_tests_demo, starting,
        TP_ARGS(int, value),
        TP_FIELDS(
                ctf_integer(int, value, value)
        )
 )
-TRACEPOINT_LOGLEVEL(ust_tests_demo, starting, critical)
+TRACEPOINT_LOGLEVEL(ust_tests_demo, starting, TRACE_CRIT)
 
 TRACEPOINT_EVENT(ust_tests_demo, done,
        TP_ARGS(int, value),
@@ -43,7 +37,7 @@ TRACEPOINT_EVENT(ust_tests_demo, done,
                ctf_integer(int, value, value)
        )
 )
-TRACEPOINT_LOGLEVEL(ust_tests_demo, done, critical)
+TRACEPOINT_LOGLEVEL(ust_tests_demo, done, TRACE_CRIT)
 
 #endif /* _TRACEPOINT_UST_TESTS_DEMO_H */
 
This page took 0.031002 seconds and 4 git commands to generate.