ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist
[babeltrace.git] / formats / ctf-text / ctf-text.c
index a0b423c2254d4793b5298131a262d4d458b5e478..f4cdf105d4f7938bf9ad3219b228e44998fe64cb 100644 (file)
@@ -136,7 +136,15 @@ struct ctf_callsite_dups *ctf_trace_callsite_lookup(struct ctf_trace *trace,
                        GQuark callsite_name)
 {
        return g_hash_table_lookup(trace->callsites,
-                       (gpointer) (unsigned long) callsite_name);
+                       GUINT_TO_POINTER(callsite_name));
+}
+
+void bt_ctf_text_hook(void)
+{
+       /*
+        * Dummy function to prevent the linker from discarding this format as
+        * "unused" in static builds.
+        */
 }
 
 int print_field(struct bt_definition *definition)
@@ -342,6 +350,8 @@ int ctf_text_write_event(struct bt_stream_pos *ppos, struct ctf_stream_definitio
                set_field_names_print(pos, ITEM_HEADER);
                if (pos->print_names) {
                        fprintf(pos->fp, "trace:domain = ");
+               } else if (dom_print) {
+                       fprintf(pos->fp, ":");
                }
                fprintf(pos->fp, "%s", stream_class->trace->env.domain);
                if (pos->print_names)
This page took 0.026389 seconds and 4 git commands to generate.