]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix error message when PCI bridge has index <= bus
authorAndrea Bolognani <abologna@redhat.com>
Mon, 23 May 2016 16:00:36 +0000 (18:00 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 26 May 2016 14:24:04 +0000 (16:24 +0200)
commitc7289cf3b59aacd08dbc9047eda52c03b2837653
treed311b2a77e06590da279ea5345407f5ae3f9b92a
parent3ba93c754bc875a2b5f1baf65ca5ba704beb0bc5
qemu: Fix error message when PCI bridge has index <= bus

Commit ff2126225df0 changed the error message to be more
detailed about the failure at hand; however, while the new
error message claims that "bus must be <= index", the error
message is displayed if "idx <= addr->bus", ie. when bus
is larger than or *equal to* index.

Change the error message to report the correct constraint,
and format it in a way that mirrors the check exactly to
make it clearer to people reading the code. The new error
message reads "index must be larger than bus".

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1339900
src/qemu/qemu_domain_address.c