mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
virpci: report dev->name in virPCIGetHeaderType error message
Trivial change. Adding the name of the device that has an unknown PCI header type in that function helps when debugging PCI code. Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
a190f86729
commit
0a5a547725
@ -3239,7 +3239,8 @@ int virPCIGetHeaderType(virPCIDevicePtr dev, int *hdrType)
|
||||
type &= PCI_HEADER_TYPE_MASK;
|
||||
if (type >= VIR_PCI_HEADER_LAST) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("Unknown PCI header type '%d'"), type);
|
||||
_("Unknown PCI header type '%d' for device '%s'"),
|
||||
type, dev->name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user