From: Philippe Proulx Date: Tue, 25 Nov 2014 21:41:55 +0000 (-0500) Subject: Prettify C output with newlines X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=776ea529028df393591f266be7500ee40d178829;p=deliverable%2Fbarectf.git Prettify C output with newlines --- diff --git a/barectf/cli.py b/barectf/cli.py index ae37293..c0945da 100644 --- a/barectf/cli.py +++ b/barectf/cli.py @@ -1375,6 +1375,7 @@ class BarectfCodeGenerator: # out of space) line = 'uint32_t ctx_at_begin = {};'.format(self._CTX_AT) clines.append(_CLine(line)) + clines.append(_CLine('')) # packet context fields fcline_groups = [] @@ -1493,9 +1494,9 @@ class BarectfCodeGenerator: # out of space) line = 'uint32_t ctx_at_begin = {};'.format(self._CTX_AT) clines.append(_CLine(line)) + clines.append(_CLine('')) # set context parameters - clines.append(_CLine('')) clines.append(_CLine("/* barectf context parameters */")) clines.append(_CLine('ctx->buf = buf;')) clines.append(_CLine('ctx->packet_size = buf_size * 8;')) @@ -1774,6 +1775,7 @@ class BarectfCodeGenerator: # out of space) line = 'uint32_t ctx_at_begin = {};'.format(self._CTX_AT) clines.append(_CLine(line)) + clines.append(_CLine('')) # event header fcline_groups = []