From: Mathieu Desnoyers Date: Wed, 18 Dec 2013 18:47:52 +0000 (-0500) Subject: Fix: quote event name in metadata X-Git-Tag: v2.3.5~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=040b4761a1eea72a9ad320ba42fc5d7b6977a624;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 5061a050..bc00f5d4 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -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,