projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: add loglevel type to lttng list <name>
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
list.c
diff --git
a/src/bin/lttng/commands/list.c
b/src/bin/lttng/commands/list.c
index 66a322a06adb650b2a593c9147a7d9ed556bf8ba..1a46bb72b221f2d75f9cd82ea94a13b3ef457450 100644
(file)
--- a/
src/bin/lttng/commands/list.c
+++ b/
src/bin/lttng/commands/list.c
@@
-217,6
+217,18
@@
static const char *loglevel_string(int value)
}
}
}
}
+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.
*/
/*
* Pretty print single event.
*/
@@
-226,9
+238,10
@@
static void print_events(struct lttng_event *event)
case LTTNG_EVENT_TRACEPOINT:
{
if (event->loglevel != -1) {
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,
indent6,
event->name,
+ logleveltype_string(event->loglevel_type),
loglevel_string(event->loglevel),
event->loglevel,
enabled_string(event->enabled),
loglevel_string(event->loglevel),
event->loglevel,
enabled_string(event->enabled),
This page took
0.023969 seconds
and
4
git commands to generate.