[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] pciback: prefer xenbus_write() over xenbus_printf() where possible
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1467966697 -7200 # Fri Jul 08 10:31:37 2016 +0200 # Node ID 7cb172c4686775ed84504a8649eaa5854573110e # Parent 4930cfc7042b517ffd3bcfc7346ab53da3fe8c32 pciback: prefer xenbus_write() over xenbus_printf() where possible ... as being the simpler variant. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 4930cfc7042b -r 7cb172c46867 drivers/xen/pciback/controller.c --- a/drivers/xen/pciback/controller.c Fri Jul 08 10:27:17 2016 +0200 +++ b/drivers/xen/pciback/controller.c Fri Jul 08 10:31:37 2016 +0200 @@ -283,9 +283,7 @@ static acpi_status write_xenbus_resource strncat(buf, tmp, 2); } - err = xenbus_printf(XBT_NIL, info->pdev->xdev->nodename, - str, "%s", buf); - + err = xenbus_write(XBT_NIL, info->pdev->xdev->nodename, str, buf); if (!err) info->resource_count++; diff -r 4930cfc7042b -r 7cb172c46867 drivers/xen/pciback/pci_stub.c --- a/drivers/xen/pciback/pci_stub.c Fri Jul 08 10:27:17 2016 +0200 +++ b/drivers/xen/pciback/pci_stub.c Fri Jul 08 10:31:37 2016 +0200 @@ -557,7 +557,7 @@ again: return; } /*PV AER handlers will set this flag*/ - xenbus_printf(xbt, nodename, "aerState" , "aerfail" ); + xenbus_write(xbt, nodename, "aerState", "aerfail"); err = xenbus_transaction_end(xbt, 0); if (err) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |