From: Mathieu Desnoyers Date: Thu, 31 Oct 2013 19:02:38 +0000 (-0400) Subject: ctf-writer: Coding style fix X-Git-Tag: v1.2.0-rc1~39^2~28 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=e32ff7035ef1efc0c61c3cb7ec2c4b7ca32f48c4 ctf-writer: Coding style fix Signed-off-by: Mathieu Desnoyers --- diff --git a/formats/ctf/writer/writer.c b/formats/ctf/writer/writer.c index 7490715e..d0fad8fb 100644 --- a/formats/ctf/writer/writer.c +++ b/formats/ctf/writer/writer.c @@ -355,12 +355,13 @@ static void append_trace_metadata(struct bt_ctf_writer *writer, struct metadata_context *context) { + unsigned char *uuid = writer->uuid; + g_string_append(context->string, "trace {\n"); g_string_append(context->string, "\tmajor = 1;\n"); g_string_append(context->string, "\tminor = 8;\n"); - unsigned char *uuid = writer->uuid; g_string_append_printf(context->string, "\tuuid = \"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\";\n", uuid[0], uuid[1], uuid[2], uuid[3],