diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-07-12 13:00:16 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-07-15 12:35:21 +0000 |
| commit | 15b6e763fde0cbc96e555d975e92532222ecd7ff (patch) | |
| tree | 3d34223059e9b2c4a9dc85ba8a039de1669df4be | |
| parent | 78b88fa490ee13dad6c85a018525c268aed4b6d3 (diff) | |
syz-manager: improve StartReproduction() logging
Provide more visibility into the reproduction manager state.
| -rw-r--r-- | syz-manager/repro.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/syz-manager/repro.go b/syz-manager/repro.go index 0671aab74..8953e3b64 100644 --- a/syz-manager/repro.go +++ b/syz-manager/repro.go @@ -67,11 +67,11 @@ func newReproManager(mgr reproManagerView, reproVMs int, onlyOnce bool) *reproMa // startReproduction() is assumed to be called only once. // The agument is the maximum number of VMs dedicated to the bug reproduction. func (m *reproManager) StartReproduction() { - log.Logf(1, "starting reproductions (max %d VMs)", m.reproVMs) - - for count := 1; m.calculateReproVMs(count) <= m.reproVMs; count++ { + count := 0 + for ; m.calculateReproVMs(count+1) <= m.reproVMs; count++ { m.parallel <- struct{}{} } + log.Logf(0, "starting bug reproductions (max %d VMs, %d repros)", m.reproVMs, count) } func (m *reproManager) calculateReproVMs(repros int) int { |
