aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qemu-io.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/qemu-io.c b/qemu-io.c
index bd3bd16..2dbe20f 100644
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -1427,8 +1427,11 @@ alloc_f(int argc, char **argv)
cvtstr(offset, s1, sizeof(s1));
- printf("%d/%d sectors allocated at offset %s\n",
- sum_alloc, nb_sectors, s1);
+ if (nb_sectors == 1)
+ printf("sector allocated at offset %s\n", s1);
+ else
+ printf("%d/%d sectors allocated at offset %s\n",
+ sum_alloc, nb_sectors, s1);
return 0;
}