From 15b6e763fde0cbc96e555d975e92532222ecd7ff Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 12 Jul 2024 13:00:16 +0200 Subject: syz-manager: improve StartReproduction() logging Provide more visibility into the reproduction manager state. --- syz-manager/repro.go | 6 +++--- 1 file 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 { -- cgit mrf-deployment