]> xenbits.xensource.com Git - xen.git/commit
libxl: Fix libxl__device_pci_reset error messages
authorJason Andryuk <jandryuk@gmail.com>
Mon, 13 Mar 2023 19:57:55 +0000 (15:57 -0400)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 15 Mar 2023 18:41:46 +0000 (18:41 +0000)
commitfc750656aa78595a6a3693b41cd27e6cf07aba31
tree802838a96830e0c9db85d2fcb96e5aeb64038628
parent38bdfa44cc0d99acefa5f7a1cc2a8a02311a76c4
libxl: Fix libxl__device_pci_reset error messages

Don't use the LOG*D macros.  They expect a domid, but "domain" here is
the PCI domain.  Hence it is inappropriate for this use.

Make the write error messages uniform with LOGE.  errno has the
interesting information while rc is just -1.  Drop printing rc and use
LOGE to print errno as text.

The interesting part of a failed write to do_flr is that PCI BDF, so
print that.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libs/light/libxl_pci.c