From 053171eaf2a06b5550d958f518178bb303d68496 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 6 Jan 2018 15:26:40 +0100 Subject: pkg/csource: fix build of generated files On another machine both clang and gcc produce: test.c:163:32: error: invalid suffix "+procid" on integer constant *(uint32_t*)0x20001004 = 0x25dfdbfe+procid*4; Not sure why this wasn't caught on buildbot. --- pkg/csource/csource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/csource/csource.go') diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go index c25f8b760..bede09122 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -386,7 +386,7 @@ func (ctx *context) constArgToStr(arg prog.ExecArgConst) string { val = fmt.Sprintf("0x%x", v) } if ctx.opts.Procs > 1 && arg.PidStride != 0 { - val += fmt.Sprintf("+procid*%v", arg.PidStride) + val += fmt.Sprintf(" + procid*%v", arg.PidStride) } if arg.BigEndian { val = fmt.Sprintf("htobe%v(%v)", arg.Size*8, val) -- cgit mrf-deployment