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:47:52 +0000 (13:47 -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 2b2f4cbf034d46e270102789162d2cb01f48d61b..e3a7324b84ab82ebb31761500d812c0c1c728f80 100644 (file)
@@ -835,7 +835,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.027215 seconds and 4 git commands to generate.