Show loglevel information only with value
[babeltrace.git] / formats / ctf-text / ctf-text.c
index 83f0cf9c9ac1e8385e2ed29c2574ba0ab60a2e7e..150cf3a5c8124c9da3b59f7fd641493a9623362e 100644 (file)
@@ -282,16 +282,15 @@ int ctf_text_write_event(struct stream_pos *ppos,
                        fprintf(pos->fp, ", ");
                dom_print = 1;
        }
-       if ((opt_loglevel_field || opt_all_fields) && event_class->loglevel_identifier != 0) {
+       if ((opt_loglevel_field || opt_all_fields) && event_class->loglevel != -1) {
                set_field_names_print(pos, ITEM_HEADER);
                if (pos->print_names) {
                        fprintf(pos->fp, "loglevel = ");
                } else if (dom_print) {
                        fprintf(pos->fp, ":");
                }
-               fprintf(pos->fp, "%s (%lld)",
-                       g_quark_to_string(event_class->loglevel_identifier),
-                       (long long) event_class->loglevel_value);
+               fprintf(pos->fp, "(%d)",
+                       event_class->loglevel);
                if (pos->print_names)
                        fprintf(pos->fp, ", ");
                dom_print = 1;
This page took 0.022804 seconds and 4 git commands to generate.