diff options
| author | Anton Lindqvist <anton@basename.se> | 2018-12-08 11:00:59 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-08 18:59:10 +0100 |
| commit | 4e1aade2feeb2b9c8b40426b39296d2ae9aa0b99 (patch) | |
| tree | a6297914f8b6839458511e9d593c01858cf7dda5 /pkg/report/netbsd.go | |
| parent | 2b3ea5d7e046d4827e367319b0c1b0717ea315b0 (diff) | |
pkg/report: pass the target to each OS report constructor
In order to use the already defined kernel name in sys/targets to reduce
duplications.
Diffstat (limited to 'pkg/report/netbsd.go')
| -rw-r--r-- | pkg/report/netbsd.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/report/netbsd.go b/pkg/report/netbsd.go index 5457327c9..7de3f86cb 100644 --- a/pkg/report/netbsd.go +++ b/pkg/report/netbsd.go @@ -5,6 +5,8 @@ package report import ( "regexp" + + "github.com/google/syzkaller/sys/targets" ) type netbsd struct { @@ -13,7 +15,8 @@ type netbsd struct { ignores []*regexp.Regexp } -func ctorNetbsd(kernelSrc, kernelObj string, ignores []*regexp.Regexp) (Reporter, []string, error) { +func ctorNetbsd(target *targets.Target, kernelSrc, kernelObj string, + ignores []*regexp.Regexp) (Reporter, []string, error) { ctx := &netbsd{ kernelSrc: kernelSrc, kernelObj: kernelObj, |
