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:49:55 +0000 (13:49 -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 5061a050ce1f7e7453fce3721998e75f0fcadaad..bc00f5d40e9f7da8a7be35193f0170a9f1a74b7f 100644 (file)
@@ -833,7 +833,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.026933 seconds and 4 git commands to generate.