summaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-01-04 14:16:45 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-01-09 10:24:11 -0500
commit6c254de16a1d14c1ac931d3aa08dc88ac9fc582b (patch)
tree27d2034808f672a73fe3c0cc81d77c7286373ba7 /drivers/xen
parent3167355801505886209374daf86a452034e34ee8 (diff)
downloadblackbird-op-linux-6c254de16a1d14c1ac931d3aa08dc88ac9fc582b.tar.gz
blackbird-op-linux-6c254de16a1d14c1ac931d3aa08dc88ac9fc582b.zip
xen/pciback: Expand the warning message to include domain id.
When a PCI device is transferred to another domain and it is still in usage (from the internal perspective), mention which other domain is using it to aid in debugging. [v2: Truncate the verbose message per Jan Beulich suggestion] [v3: Suggestions from Ian Campbell on the wording] Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Acked-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/xen-pciback/xenbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xen-pciback/xenbus.c b/drivers/xen/xen-pciback/xenbus.c
index 87c5dc3368d0..8e1c44d8ab46 100644
--- a/drivers/xen/xen-pciback/xenbus.c
+++ b/drivers/xen/xen-pciback/xenbus.c
@@ -243,8 +243,8 @@ static int xen_pcibk_export_device(struct xen_pcibk_device *pdev,
dev_dbg(&dev->dev, "registering for %d\n", pdev->xdev->otherend_id);
if (xen_register_device_domain_owner(dev,
pdev->xdev->otherend_id) != 0) {
- dev_err(&dev->dev, "device has been assigned to another " \
- "domain! Over-writting the ownership, but beware.\n");
+ dev_err(&dev->dev, "Stealing ownership from dom%d.\n",
+ xen_find_device_domain_owner(dev));
xen_unregister_device_domain_owner(dev);
xen_register_device_domain_owner(dev, pdev->xdev->otherend_id);
}
OpenPOWER on IntegriCloud