diff mbox

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

Message ID 577E28A802000078000FBF14@prv-mh.provo.novell.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jan Beulich July 7, 2016, 8:02 a.m. UTC
... as being the simpler variant.

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




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

Patch

--- 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");