diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-06-17 12:29:35 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-06-17 14:41:10 +0200 |
| commit | 75c73461d8c3025e9974da2215000d849c43bbbc (patch) | |
| tree | 4d725dc979b32eb3a693941511a4c1296b159c17 /tools | |
| parent | 4cc7e0862826e6703642cfbf6440e3ef8fd8da0e (diff) | |
syz-manager/config: rename to syz-manager/mgrconfig
We have 2 packages with the same name: pkg/config and syz-manager/config.
This leads to constant clashes. We either rename one to pkgconfig or
another to mgrconfig. This is not good and will become worse when/if
we have another program-specific config in a separate package.
Rename manager config to mgrconfig.
Other program-specific configs can use the same convention
in future -- fooconfig.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-crush/crush.go | 6 | ||||
| -rw-r--r-- | tools/syz-repro/repro.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/syz-crush/crush.go b/tools/syz-crush/crush.go index 38e7eb8d4..17dc87944 100644 --- a/tools/syz-crush/crush.go +++ b/tools/syz-crush/crush.go @@ -19,7 +19,7 @@ import ( "time" . "github.com/google/syzkaller/pkg/log" - "github.com/google/syzkaller/syz-manager/config" + "github.com/google/syzkaller/syz-manager/mgrconfig" "github.com/google/syzkaller/vm" ) @@ -29,7 +29,7 @@ var ( func main() { flag.Parse() - cfg, _, err := config.Parse(*flagConfig) + cfg, _, err := mgrconfig.Parse(*flagConfig) if err != nil { Fatalf("%v", err) } @@ -80,7 +80,7 @@ func main() { wg.Wait() } -func runInstance(cfg *config.Config, vmPool *vm.Pool, index int) { +func runInstance(cfg *mgrconfig.Config, vmPool *vm.Pool, index int) { inst, err := vmPool.Create(index) if err != nil { Logf(0, "failed to create instance: %v", err) diff --git a/tools/syz-repro/repro.go b/tools/syz-repro/repro.go index 6f26f695f..317d42fc0 100644 --- a/tools/syz-repro/repro.go +++ b/tools/syz-repro/repro.go @@ -14,7 +14,7 @@ import ( "github.com/google/syzkaller/csource" . "github.com/google/syzkaller/pkg/log" "github.com/google/syzkaller/repro" - "github.com/google/syzkaller/syz-manager/config" + "github.com/google/syzkaller/syz-manager/mgrconfig" "github.com/google/syzkaller/vm" ) @@ -26,7 +26,7 @@ var ( func main() { os.Args = append(append([]string{}, os.Args[0], "-v=10"), os.Args[1:]...) flag.Parse() - cfg, _, err := config.Parse(*flagConfig) + cfg, _, err := mgrconfig.Parse(*flagConfig) if err != nil { Fatalf("%v", err) } |
