summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/memtest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/memtest.c b/commands/memtest.c
index 756123001a..b88290c227 100644
--- a/commands/memtest.c
+++ b/commands/memtest.c
@@ -180,8 +180,12 @@ static int do_memtest(int argc, char *argv[])
goto out;
for (i = 1; (i <= max_i) || !max_i; i++) {
+ printf("Start iteration %u", i);
if (max_i)
- printf("Start iteration %u of %u.\n", i, max_i);
+ printf(" of %u.\n", max_i);
+ else
+ putchar('\n');
+
/*
* First try a memtest with caching enabled.
*/