From: Mathieu Desnoyers Date: Wed, 18 Dec 2013 18:47:52 +0000 (-0500) Subject: Fix: quote event name in metadata X-Git-Tag: v2.2.4~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2f233e7946b38a8cb825d3f7c2338604a6012d79;p=lttng-modules.git Fix: quote event name in metadata Allows adding events with a "-" within the name with --probe or --function. Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-events.c b/lttng-events.c index f19c7d90..27a44e4e 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -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,