}
}
+static const char *logleveltype_string(enum lttng_loglevel_type value)
+{
+ switch (value) {
+ case LTTNG_EVENT_LOGLEVEL_RANGE:
+ return "<=";
+ case LTTNG_EVENT_LOGLEVEL_SINGLE:
+ return "==";
+ default:
+ return "<<TYPE UNKN>>";
+ }
+}
+
/*
* Pretty print single event.
*/
case LTTNG_EVENT_TRACEPOINT:
{
if (event->loglevel != -1) {
- MSG("%s%s (loglevel: %s (%d)) (type: tracepoint)%s%s%s",
+ MSG("%s%s (loglevel %s %s (%d)) (type: tracepoint)%s%s%s",
indent6,
event->name,
+ logleveltype_string(event->loglevel_type),
loglevel_string(event->loglevel),
event->loglevel,
enabled_string(event->enabled),