From: Mathieu Desnoyers Date: Wed, 8 Jun 2011 20:10:49 +0000 (-0400) Subject: Metadata: should write reserve_len bytes, not "len" X-Git-Tag: v2.0-pre1~59 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f5cf8eff6312d07b6e2cf012e04fce554613a748;p=lttng-modules.git Metadata: should write reserve_len bytes, not "len" Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-events.c b/ltt-events.c index ffcc61ec..e3c252d3 100644 --- a/ltt-events.c +++ b/ltt-events.c @@ -399,7 +399,7 @@ int lttng_metadata_printf(struct ltt_session *session, ret = waitret; goto end; } - chan->ops->event_write(&ctx, &str[pos], len); + chan->ops->event_write(&ctx, &str[pos], reserve_len); chan->ops->event_commit(&ctx); } end: