qemu-io: correctly print non-integer values as decimals
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 May 2012 14:51:51 +0000 (16:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 10 May 2012 08:32:12 +0000 (10:32 +0200)
commit8655d2de0a101782b8066779b8b04e59a80c7d85
tree6bf57138f38318ba1a23a604d562cfe853f42c31
parentdc5a137125d6ac641c566f10e68bf6e1fe31bcb5
qemu-io: correctly print non-integer values as decimals

qemu-io's cvtstr function sometimes will incorrectly omit the
decimal part of the number, and sometimes will incorrectly include
it.  This patch fixes both.  The former is more serious, and can
be seen in the patches to 027.out and 033.out.

The changes to all other files were scripted with sed, so there were
no "surprises" beyond 027.out and 033.out.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
13 files changed:
cmd.c
tests/qemu-iotests/002.out
tests/qemu-iotests/012.out
tests/qemu-iotests/016.out
tests/qemu-iotests/017.out
tests/qemu-iotests/018.out
tests/qemu-iotests/019.out
tests/qemu-iotests/020.out
tests/qemu-iotests/023.out
tests/qemu-iotests/027.out
tests/qemu-iotests/028.out
tests/qemu-iotests/033.out
tests/qemu-iotests/035.out