Fix: quote event name in metadata
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 18 Dec 2013 18:47:52 +0000 (13:47 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 18 Dec 2013 18:50:04 +0000 (13:50 -0500)
Allows adding events with a "-" within the name with --probe or
--function.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-events.c

index f19c7d9060e0d760ca68cd84b2a24d8bb8a50311..27a44e4ec7febb468c62a26bfc2daf8c61ac61df 100644 (file)
@@ -720,7 +720,7 @@ int _lttng_event_metadata_statedump(struct lttng_session *session,
 
        ret = lttng_metadata_printf(session,
                "event {\n"
-               "       name = %s;\n"
+               "       name = \"%s\";\n"
                "       id = %u;\n"
                "       stream_id = %u;\n",
                event->desc->name,
This page took 0.028325 seconds and 4 git commands to generate.