* [PATCH] xen-fbfront: prefer xenbus_write() over xenbus_printf() where possible
@ 2016-07-07 7:50 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2016-07-07 7:50 UTC (permalink / raw)
To: plagnioj, tomi.valkeinen
Cc: david.vrabel, xen-devel, boris.ostrovsky, Juergen Gross, linux-kernel
... as being the simpler variant.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
drivers/video/fbdev/xen-fbfront.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- 4.7-rc6-prefer-xenbus_write.orig/drivers/video/fbdev/xen-fbfront.c
+++ 4.7-rc6-prefer-xenbus_write/drivers/video/fbdev/xen-fbfront.c
@@ -593,11 +593,11 @@ static int xenfb_connect_backend(struct
evtchn);
if (ret)
goto error_xenbus;
- ret = xenbus_printf(xbt, dev->nodename, "protocol", "%s",
- XEN_IO_PROTO_ABI_NATIVE);
+ ret = xenbus_write(xbt, dev->nodename, "protocol",
+ XEN_IO_PROTO_ABI_NATIVE);
if (ret)
goto error_xenbus;
- ret = xenbus_printf(xbt, dev->nodename, "feature-update", "1");
+ ret = xenbus_write(xbt, dev->nodename, "feature-update", "1");
if (ret)
goto error_xenbus;
ret = xenbus_transaction_end(xbt, 0);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-07 7:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-07 7:50 [PATCH] xen-fbfront: prefer xenbus_write() over xenbus_printf() where possible Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).