aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encodingexec.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-01-19 14:42:29 +0100
committerAndrey Konovalov <andreyknvl@google.com>2017-01-19 15:22:04 +0100
commit872e436375622ce0969d5d2d2197aaeaa7272276 (patch)
tree808667e2d5d0a86cf260762d3f1b417ccd889c41 /prog/encodingexec.go
parent787f45346ad162ef2c55c7f6ebed39d091f940b2 (diff)
prog, sys: fix padding varlen structs
Diffstat (limited to 'prog/encodingexec.go')
-rw-r--r--prog/encodingexec.go2
1 files changed, 1 insertions, 1 deletions
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()
}