diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2010-09-02 10:38:03 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-09-08 12:39:14 +0200 |
commit | b407a81e70306e8199315e39576939dc7ac925d5 (patch) | |
tree | ec0cb77c093837fc2aafe148581d146ec02db8e8 /qemu-io.c | |
parent | aa2b1e8908271a2d7f31b73106cb83b8b4c49dfc (diff) | |
download | qemu-b407a81e70306e8199315e39576939dc7ac925d5.tar.gz qemu-b407a81e70306e8199315e39576939dc7ac925d5.tar.bz2 qemu-b407a81e70306e8199315e39576939dc7ac925d5.zip |
qemu-io: Make alloc output useful when nb_sectors=1
There is no indication whether or not the sector is allocated when
nb_sectors=1:
sector allocated at offset 64 KiB
This message is produced whether or not the sector is allocated.
Simply use the same message as the plural case, I don't think the
English is so broken that we need special case output here:
0/1 sectors allocated at offset 64 KiB
This change does not affect qemu-iotests since nb_sectors=1 is not used
there.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-io.c')
-rw-r--r-- | qemu-io.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1427,11 +1427,8 @@ alloc_f(int argc, char **argv) cvtstr(offset, s1, sizeof(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); + printf("%d/%d sectors allocated at offset %s\n", + sum_alloc, nb_sectors, s1); return 0; } |