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