From 83b1c9bf3bf0c2e6c9c9bacce368a26517f52676 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 8 Feb 2026 21:18:19 +0100 Subject: [PATCH] Print Everything OK also if nothing was processed --- cmdline/scrub.c | 4 +--- cmdline/sync.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cmdline/scrub.c b/cmdline/scrub.c index 89c0afaf..311ffc33 100644 --- a/cmdline/scrub.c +++ b/cmdline/scrub.c @@ -700,9 +700,7 @@ end: msg_status("%8u io errors\n", io_error); msg_status("%8u data errors\n", silent_error); } else { - /* print the result only if processed something */ - if (countpos != 0) - msg_status("Everything OK\n"); + msg_status("Everything OK\n"); } if (soft_error) diff --git a/cmdline/sync.c b/cmdline/sync.c index d607f2be..3713307f 100644 --- a/cmdline/sync.c +++ b/cmdline/sync.c @@ -368,9 +368,7 @@ end: msg_status("%8u io errors\n", io_error); msg_status("%8u data errors\n", silent_error); } else { - /* print the result only if processed something */ - if (countpos != 0) - msg_status("Everything OK\n"); + msg_status("Everything OK\n"); } if (soft_error)