[PATCH] xen-scsiback: prefer xenbus_write() over xenbus_printf() where possible

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

 



... as being the simpler variant.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 drivers/xen/xen-scsiback.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- 4.7-rc6-prefer-xenbus_write.orig/drivers/xen/xen-scsiback.c
+++ 4.7-rc6-prefer-xenbus_write/drivers/xen/xen-scsiback.c
@@ -1260,8 +1260,8 @@ static int scsiback_probe(struct xenbus_
 	INIT_LIST_HEAD(&info->v2p_entry_lists);
 	spin_lock_init(&info->v2p_lock);
 
-	err = xenbus_printf(XBT_NIL, dev->nodename, "feature-sg-grant", "%u",
-			    SG_ALL);
+	err = xenbus_write(XBT_NIL, dev->nodename, "feature-sg-grant",
+			   __stringify(SG_ALL));
 	if (err)
 		xenbus_dev_error(dev, err, "writing feature-sg-grant");
 



--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux