aboutsummaryrefslogtreecommitdiffstats
path: root/prog/validation.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-01-31 20:21:01 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-02-01 15:20:12 +0100
commitd973f28294d93cf54de9b2b87d4cc8524bb8a28a (patch)
treea88c26c1e1de0afa0340e7213b2738f81f40bb22 /prog/validation.go
parenta84dec47f0bdc461828c2903429e669fc0fa5e10 (diff)
prog: don't serialize default arguments
This reduces size of a corpus in half. We store corpus on manager and on hub, so this will reduce their memory consumption. But also makes large programs more readable.
Diffstat (limited to 'prog/validation.go')
-rw-r--r--prog/validation.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/prog/validation.go b/prog/validation.go
index 3ed9eabc2..400b13140 100644
--- a/prog/validation.go
+++ b/prog/validation.go
@@ -42,7 +42,8 @@ func (c *Call) validate(ctx *validCtx) error {
return fmt.Errorf("syscall %v: nil arg", c.Meta.Name)
}
if ctx.args[arg] {
- return fmt.Errorf("syscall %v: arg is referenced several times in the tree", c.Meta.Name)
+ return fmt.Errorf("syscall %v: arg %#v is referenced several times in the tree",
+ c.Meta.Name, arg)
}
ctx.args[arg] = true
if used, ok := arg.(ArgUsed); ok {