... as being the simpler variant.

Signed-off-by: Jan Beulich <jbeul...@suse.com>
---
 drivers/pci/xen-pcifront.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- 4.7-rc6-prefer-xenbus_write.orig/drivers/pci/xen-pcifront.c
+++ 4.7-rc6-prefer-xenbus_write/drivers/pci/xen-pcifront.c
@@ -822,8 +822,8 @@ do_publish:
                err = xenbus_printf(trans, pdev->xdev->nodename,
                                    "event-channel", "%u", pdev->evtchn);
        if (!err)
-               err = xenbus_printf(trans, pdev->xdev->nodename,
-                                   "magic", XEN_PCI_MAGIC);
+               err = xenbus_write(trans, pdev->xdev->nodename,
+                                  "magic", XEN_PCI_MAGIC);
 
        if (err) {
                xenbus_transaction_end(trans, 1);




_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to