ctf-writer: Coding style fix
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 31 Oct 2013 19:02:38 +0000 (15:02 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 31 Oct 2013 19:02:38 +0000 (15:02 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/writer/writer.c

index 7490715eb7ffc4f707ec84c8249b6de0cc41c673..d0fad8fbb0ab5d3fde5b0753b1f419839ade0418 100644 (file)
@@ -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],
This page took 0.025298 seconds and 4 git commands to generate.