Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9288895imu; Wed, 5 Dec 2018 02:14:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/UVNApdEJHLdauzSh6yT0PieRTMgPzxQk58shPop9Xgx8/TR04/CV1E+8ZbGG6YsvDZGWnn X-Received: by 2002:a17:902:142:: with SMTP id 60mr24313917plb.330.1544004866186; Wed, 05 Dec 2018 02:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544004866; cv=none; d=google.com; s=arc-20160816; b=q8zSKBxZRaZoTJE9MXtoEUPHJP8nlJluJsaOmJBA/2PC2m32I+zx+N7x6cE+SLfaMr 0UXCLmvze/5bAgcyfYCSLDpr+nAqoKPiNKiOlRsB9fWF9AedwcSO9zvIAuK0aPAu4zlh V896+p+lypkYEEC+vs+IVMV1okf6eeBoaBAWTOFNAKdk34nfJQHtjyWGsXL4+kARESe5 +MSjxPDlUFXOi5O3xB29T/vdg5mwqNfHiFA/wcVdW8tAivrF4ewVCrBLNeEWDm84XU4b Bw+g3lCSBY+X9Rd3f4Zb/GZ/IkY/xh+sQaXU9jKRCKWFOC3Mf953aWibXMVxa8htHOI4 fqgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=4DP5zWXPunjYKEtXdIUQJ80m+wyDhMSo94sqR4GiQiY=; b=iuzF5kzJyScD56eh3l/drSE4cKHr7TDo0hAiLf8VKGhLjLOPbKrO5VJSJRO/RoQ2Nu XzrNHeMmeCqZEZ3RZr8qcJMLnNEhsNjl2TcinREG4OcRRr4AnS7Jqb4gWkZkwzNfA5iq qSzvpR/ESBXawhkMEZc+pNQHWJ1G9eq7uuK6Di0VHAGXmK5o4m6SFc42xFlrimQareXT t40YuQRuTI9v2dlAIDhq5xDvtcQlTqOhRSZkSL6ngklTE1qYC2leX9jcTHgJEX/4Z3Ps GopaN4m5D+G+orygNB0xTuBqyLEUdcNSpNWM6GJDLo+ql5MEifoaM7Piw8LLaaz3U5HD 3muA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=JQwa7N89; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si17759154pgc.65.2018.12.05.02.14.10; Wed, 05 Dec 2018 02:14:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=JQwa7N89; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728195AbeLEKMa (ORCPT + 99 others); Wed, 5 Dec 2018 05:12:30 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:45148 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727833AbeLEKM3 (ORCPT ); Wed, 5 Dec 2018 05:12:29 -0500 Received: by mail-ed1-f66.google.com with SMTP id d39so16466141edb.12 for ; Wed, 05 Dec 2018 02:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4DP5zWXPunjYKEtXdIUQJ80m+wyDhMSo94sqR4GiQiY=; b=JQwa7N89LS1QWImmZJbxYzivHzq5vkHw1qcjeVXt6jZPagE6mLc1Oxzl+0IN15fhI1 Oi38GWY7kKZrPnO2EZtRPP6E1DKynArVN8ZHBRqPI7MW7Z+N8GJO5Ah42YTvPtYY/LrK WW+cSDulBEGexNxHhm2R9BQ3s844xTwOFwFg8ScZiJSm/rpX8DedFN7aR2semelPM557 WcdiOV7OY1Z8+Q2260gHl26rkB7SNjBHGHkLUV6kVBccVYd8FCCsjsk/eT3qVgcx4lBv 6OIIZMudrmwPQLK2JjUtTg2spk9lPHzIlMLfL4d4XVdK5N9EtHNeygwHNcokvygSXKu1 Qm1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4DP5zWXPunjYKEtXdIUQJ80m+wyDhMSo94sqR4GiQiY=; b=Yx/U1i/kPaSVP1+3xRO2Wu4RqCXimykmtv1pE3RiIHd96ngBzMnob7ZShgST54ym3Q lovPoQIPLKKUhPueU10x6NMq8GuJBDV9wpXsfRz6bCbaJwbwwJtfMyvempAMgEFqluEh qU+ZO7YpC2OuNdKtfsj+3NF9O97nOEZbGrPDegL1FRHXTTFzmieXj5N8bXkxYWTfx2Kb gA09il1XPYwaESRC8No/vGNnJ9TjvLTBLnyuxv3FjDHLbk2KRwp1g8YrnpATQuakbkcw tux7cux610E5SqldrX75Z41sGDEd20NO63R++mFi2PE7Q09rCJf10CpD5TFRIYM4jpNY RUgw== X-Gm-Message-State: AA+aEWbCzjE5yIr9mf2ZKuBfvjmFMCEeaiZE/tBSVulI0Yt0GGCwqH4h KwJhFg5cR+Qo99QTd6JhI53FQ82q6qc= X-Received: by 2002:a17:906:7f89:: with SMTP id f9-v6mr18186219ejr.51.1544004745950; Wed, 05 Dec 2018 02:12:25 -0800 (PST) Received: from [192.168.192.38] ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id k11sm5124774edq.51.2018.12.05.02.12.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 02:12:25 -0800 (PST) Subject: Re: [PATCH 2/2] staging: greybus: Added space between string concatenated To: Cristian Sicilia , Johan Hovold , Alex Elder , Greg Kroah-Hartman Cc: greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org References: <5b215b50d4da9a7730450a83fb5e3a167b65e03a.1543956271.git.sicilia.cristian@gmail.com> From: Bryan O'Donoghue Message-ID: <42632636-9b08-bd75-b789-88ef82f52c2c@nexus-software.ie> Date: Wed, 5 Dec 2018 10:12:24 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <5b215b50d4da9a7730450a83fb5e3a167b65e03a.1543956271.git.sicilia.cristian@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US-large Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/12/2018 20:58, Cristian Sicilia wrote: > Some concatenated strings are now spaced. > > Signed-off-by: Cristian Sicilia > --- > drivers/staging/greybus/loopback.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c > index 1085e06..acfa392 100644 > --- a/drivers/staging/greybus/loopback.c > +++ b/drivers/staging/greybus/loopback.c > @@ -141,7 +141,7 @@ static ssize_t name##_##field##_show(struct device *dev, \ > /* Report 0 for min and max if no transfer successed */ \ > if (!gb->requests_completed) \ > return sprintf(buf, "0\n"); \ > - return sprintf(buf, "%"#type"\n", gb->name.field); \ > + return sprintf(buf, "%" #type "\n", gb->name.field); \ > } \ > static DEVICE_ATTR_RO(name##_##field) > > @@ -176,7 +176,7 @@ static ssize_t field##_show(struct device *dev, \ > char *buf) \ > { \ > struct gb_loopback *gb = dev_get_drvdata(dev); \ > - return sprintf(buf, "%"#type"\n", gb->field); \ > + return sprintf(buf, "%" #type "\n", gb->field); \ > } \ > static ssize_t field##_store(struct device *dev, \ > struct device_attribute *attr, \ > @@ -212,7 +212,7 @@ static ssize_t field##_show(struct device *dev, \ > char *buf) \ > { \ > struct gb_loopback *gb = dev_get_drvdata(dev); \ > - return sprintf(buf, "%"#type"\n", gb->field); \ > + return sprintf(buf, "%" #type "\n", gb->field); \ > } \ > static ssize_t field##_store(struct device *dev, \ > struct device_attribute *attr, \ > Eh. But doesn't all of this add an extra two space to the resultant string ? Not what we want. --- bod