From patchwork Thu Jul 7 08:02:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 9218105 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BDBB06048B for ; Thu, 7 Jul 2016 08:02:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B359B2879D for ; Thu, 7 Jul 2016 08:02:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A86302879F; Thu, 7 Jul 2016 08:02:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6719C2879D for ; Thu, 7 Jul 2016 08:02:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756526AbcGGICS (ORCPT ); Thu, 7 Jul 2016 04:02:18 -0400 Received: from prv-mh.provo.novell.com ([137.65.248.74]:41118 "EHLO prv-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751936AbcGGICQ convert rfc822-to-8bit (ORCPT ); Thu, 7 Jul 2016 04:02:16 -0400 Received: from INET-PRV-MTA by prv-mh.provo.novell.com with Novell_GroupWise; Thu, 07 Jul 2016 02:02:16 -0600 Message-Id: <577E28A802000078000FBF14@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.0 Date: Thu, 07 Jul 2016 02:02:16 -0600 From: "Jan Beulich" To: "Juergen Gross" Cc: , Subject: [PATCH] xen-scsiback: prefer xenbus_write() over xenbus_printf() where possible Mime-Version: 1.0 Content-Disposition: inline Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ... as being the simpler variant. Signed-off-by: Jan Beulich --- 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 --- 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");