[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xen-scsiback: prefer xenbus_write() over xenbus_printf() where possible
... 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"); _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |