From d7a1936536c4ce703297b603139a4afdfbbc194a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Sat, 3 Jul 2021 18:34:02 +0200 Subject: [PATCH] enh: read linear: more progress info in console --- src/read-linear.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/read-linear.c b/src/read-linear.c index 7bbe4b4..555d42f 100644 --- a/src/read-linear.c +++ b/src/read-linear.c @@ -651,10 +651,8 @@ static void show_progress(read_closure *rc) } if(Closure->fixedSpeedValues) - PrintProgress(_("Read position: %3d.%1d%% (nn.nx)"), - percent/10,percent%10); - else PrintProgress(_("Read position: %3d.%1d%% (%4.1fx)"), - percent/10,percent%10,rc->speed); + PrintProgress(_("Read position: %3d.%1d%% (nn.nx), sector %" PRId64 "/%" PRId64 ", %" PRId64 " sectors read OK, %" PRId64 " read errors, %" PRId64 " crc errors"), percent/10, percent%10, rc->readPos, rc->image->dh->sectors, rc->readOK, Closure->readErrors, Closure->crcErrors); + else PrintProgress(_("Read position: %3d.%1d%% (%4.1fx), sector %" PRId64 "/%" PRId64 ", %" PRId64 " sectors read OK, %" PRId64 " read errors, %" PRId64 " crc errors"), percent/10, percent%10, rc->speed, rc->readPos, rc->image->dh->sectors, rc->readOK, Closure->readErrors, Closure->crcErrors); rc->lastPercent = percent; rc->lastSpeed = rc->speed;