qemu-io: Make alloc output useful when nb_sectors=1
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Thu, 2 Sep 2010 09:38:03 +0000 (10:38 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 8 Sep 2010 10:39:14 +0000 (12:39 +0200)
commitfa84d9b56257a49a97a5ee8bd6917648cfe39a71
treeec0cb77c093837fc2aafe148581d146ec02db8e8
parent28c3a5f5cfc0ce0c8c34042566e2fae4f9846896
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>
qemu-io.c