spapr_pci: Improve error message
commit70282930173797afed352b82b4710233948c7495
authorGreg Kurz <groug@kaod.org>
Wed, 29 May 2019 17:15:09 +0000 (29 19:15 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 12 Jun 2019 00:41:49 +0000 (12 10:41 +1000)
tree434c1da6b0bf7be6b898d8dfb96defd68ed484a3
parent219dca61ebf41625831d4f96a720852baf44b762
spapr_pci: Improve error message

Every PHB must have a unique index. This is checked at realize but when
a duplicate index is detected, an error message mentioning BUIDs is
printed. This doesn't help much, especially since BUID is an internal
concept that is no longer exposed to the user.

Fix the message to mention the index property instead of BUID. As a bonus
print a list of indexes already in use.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155915010892.2061314.10485622810149098411.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_pci.c