From: Philippe Proulx Date: Wed, 30 Mar 2016 21:32:45 +0000 (-0400) Subject: templates: fix generated indentation X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1645a6506677e428d29d2dc5a2fda67c2f7d534f;p=deliverable%2Fbarectf.git templates: fix generated indentation Signed-off-by: Philippe Proulx --- diff --git a/barectf/templates.py b/barectf/templates.py index b338f9b..b4d901f 100644 --- a/barectf/templates.py +++ b/barectf/templates.py @@ -264,8 +264,8 @@ _C_SRC = '''/* #include "{header_filename}" -#define _ALIGN(_at, _align) \\ - do {{ \\ +#define _ALIGN(_at, _align) \\ + do {{ \\ (_at) = ((_at) + ((_align) - 1)) & -(_align); \\ }} while (0)