aboutsummaryrefslogtreecommitdiffstats
path: root/qemu-io.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2010-12-22 22:28:32 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-01-02 22:03:19 +0100
commit799d973af6df48d62712c3335e2cdf2d8a259718 (patch)
tree217d0643a5810c5634be22895fd6821a6ab968be /qemu-io.c
parenteccfd661905bb0b073c4acba561da85c8ddfeb9e (diff)
downloadexternal_qemu-799d973af6df48d62712c3335e2cdf2d8a259718.zip
external_qemu-799d973af6df48d62712c3335e2cdf2d8a259718.tar.gz
external_qemu-799d973af6df48d62712c3335e2cdf2d8a259718.tar.bz2
upstream: qemu-io.c
Change-Id: I805c1a2471269e160ec914dcdcf7c3a437c30977
Diffstat (limited to 'qemu-io.c')
-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;
}