From: "Jan Beulich" <JBeulich@suse.com>
To: <plagnioj@jcrosoft.com>, <tomi.valkeinen@ti.com>
Cc: <david.vrabel@citrix.com>, <xen-devel@lists.xenproject.org>,
<boris.ostrovsky@oracle.com>, "Juergen Gross" <JGross@suse.com>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH] xen-fbfront: prefer xenbus_write() over xenbus_printf() where possible
Date: Thu, 07 Jul 2016 01:50:05 -0600 [thread overview]
Message-ID: <577E25CD02000078000FBE73@prv-mh.provo.novell.com> (raw)
... 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);
reply other threads:[~2016-07-07 7:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=577E25CD02000078000FBE73@prv-mh.provo.novell.com \
--to=jbeulich@suse.com \
--cc=JGross@suse.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=linux-kernel@vger.kernel.org \
--cc=plagnioj@jcrosoft.com \
--cc=tomi.valkeinen@ti.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®