[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xen-pcifront: prefer xenbus_write() over xenbus_printf() where possible



... as being the simpler variant.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 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@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.