From 1450a0f1466a8cfb48ed17ea07beff7f0c4b4a02 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 4 Feb 2025 09:40:22 +0200 Subject: Improve progress diagnostics --- libbuild2/operation.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libbuild2/operation.cxx') diff --git a/libbuild2/operation.cxx b/libbuild2/operation.cxx index fae1251..8b28dd8 100644 --- a/libbuild2/operation.cxx +++ b/libbuild2/operation.cxx @@ -288,11 +288,14 @@ namespace build2 // Note also that the higher the increment, the less accurate our // executed during match number will be. // + // Note that we strip the outer operation from "(... during match)" + // not to repeat the same "(for )" twice. + // md.incr = stderr_term // Scale depending on output type. ? (ctx.sched->serial () ? 1 : 2) : 100; md.what1 = " targets to " + diag_do (ctx, a); - md.what2 = ' ' + diag_did (ctx, a) + " during match)"; + md.what2 = ' ' + diag_did (ctx, a.inner_action ()) + " during match)"; mg = ctx.sched->monitor ( ctx.target_count, -- cgit v1.1