From 872e436375622ce0969d5d2d2197aaeaa7272276 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 19 Jan 2017 14:42:29 +0100 Subject: prog, sys: fix padding varlen structs --- prog/encodingexec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prog/encodingexec.go') diff --git a/prog/encodingexec.go b/prog/encodingexec.go index 6dc8c88d2..517e8eb20 100644 --- a/prog/encodingexec.go +++ b/prog/encodingexec.go @@ -62,7 +62,7 @@ func (p *Prog) SerializeForExec(pid int) []byte { size := rec(arg1.Option, offset) offset += size if size > arg1.Size() { - panic(fmt.Sprintf("bad union arg size %v, should be <= %v for %+v", size, arg1.Size(), arg1)) + panic(fmt.Sprintf("bad union arg size %v, should be <= %v for arg %+v with type %+v", size, arg1.Size(), arg1, arg1.Type)) } return arg1.Size() } -- cgit mrf-deployment