Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp961844ybk; Wed, 13 May 2020 18:34:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwt1f5Om4XstxaJcyx+OJA1kTrSlhjDc19QzDgYSV5NXZ7bXs1EYQQ0fTRPN3+g4BTWhA2 X-Received: by 2002:a17:906:49d0:: with SMTP id w16mr1673896ejv.364.1589420085232; Wed, 13 May 2020 18:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589420085; cv=none; d=google.com; s=arc-20160816; b=WZZjaSPhtowRachXtONHIvFrUj9PjVOROrhf/lhpuawh46+54IRDT6vz2dLiys9Q2W n2Gf8H6jI+FAB+R9S4FWp6Ks8snMYbH22Owv8FNZo/dUi1Dp64RmLj0iOZw1BCOU0o0m WLeJDhk6kUo3DnxeorV5/iaxSYgKTl472dKO/u1VmCgSp1PM57nRjAmh1yBAM9pDIAQF 0TcHI69VPpfvMZ+2bh7iybonFW7V7VuDzsijX/XUtxlhwko7hB6m8ciz/yCdCVMK+eVF 2ZNm3YZnDGPNgf4Uo1T7bhuZTlvWn7u6gAJTfkN++vMGjzSadvbJiD4pQP+54PVaqZVx 2ABg== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=ptq6JFLeR/Ugu1v3e7Gtj9NygyUIFhMovydDykMWxSc=; b=EKpHWDeY8+Tg8pTVv1g1BUtu/IF2cZfYdU9J1+JI75aTX92bvBug9swonPUkdIL0Kn 7g4q4r0kfbchvvrFwv4tqmpYsuu2EaT19ujuhymCCngLUGHpDLuO3ksacEC0dzmy6PvZ Z61+UCnb496i6t2zJrKrp+2ul3nPmB/AxjMXSZZjB4S0iOJEvsQUpaYyLxy9uC3uhu8z BHkin7lS/5BjrU/fYAAwKnb+fUep1YlSsK1CjgqPEN6KnhgMqkH73h1PWikIJzIRtkpi D1pX583iB77e5uB4SKr9zrg5RgeW00aOCyuwlLbRgoqIW3lX4jlyc5gipFUmPiqmIuNb 6hNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si724187edb.594.2020.05.13.18.34.21; Wed, 13 May 2020 18:34:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727890AbgENBcq (ORCPT + 99 others); Wed, 13 May 2020 21:32:46 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47036 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725925AbgENBcp (ORCPT ); Wed, 13 May 2020 21:32:45 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 8766BF7CB335548C3F05; Thu, 14 May 2020 09:32:43 +0800 (CST) Received: from [127.0.0.1] (10.166.215.101) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 14 May 2020 09:32:40 +0800 Subject: Re: [PATCH] [media] tw686x: add a missing newline when printing parameter 'dma_mode' To: Ezequiel Garcia CC: Mauro Carvalho Chehab , linux-media , Linux Kernel Mailing List References: <1589186626-17243-1-git-send-email-wangxiongfeng2@huawei.com> From: Xiongfeng Wang Message-ID: Date: Thu, 14 May 2020 09:32:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.166.215.101] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ezequiel, Thanks for your reply ! On 2020/5/14 3:32, Ezequiel Garcia wrote: > On Mon, 11 May 2020 at 05:49, Xiongfeng Wang wrote: >> >> When I cat module parameter 'dma_mode' by sysfs, it displays as follows. >> It is better to add a newline for easy reading. >> >> [root@hulk-202 ~]# cat /sys/module/tw686x/parameters/dma_mode >> memcpy[root@hulk-202 ~]# >> >> Signed-off-by: Xiongfeng Wang > > I don't mind this change, but I don't think this is standard. > The lack of newline follows what other drivers are doing. > > # hexdump -c /sys/module/acpi/parameters/ec_event_clearing > 0000000 q u e r y > 0000005 > > Is it really an issue for you? It's not an issue for me. It's just that if the result is in a separate line, it reads more easily. I am also planning to fix the parameters below '/sys/module/acpi/parameters'. Thanks, Xiongfeng > > Thanks, > Ezequiel > >> --- >> drivers/media/pci/tw686x/tw686x-core.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/media/pci/tw686x/tw686x-core.c b/drivers/media/pci/tw686x/tw686x-core.c >> index 74ae4f0..bfc61da 100644 >> --- a/drivers/media/pci/tw686x/tw686x-core.c >> +++ b/drivers/media/pci/tw686x/tw686x-core.c >> @@ -71,7 +71,7 @@ static const char *dma_mode_name(unsigned int mode) >> >> static int tw686x_dma_mode_get(char *buffer, const struct kernel_param *kp) >> { >> - return sprintf(buffer, "%s", dma_mode_name(dma_mode)); >> + return sprintf(buffer, "%s\n", dma_mode_name(dma_mode)); >> } >> >> static int tw686x_dma_mode_set(const char *val, const struct kernel_param *kp) >> -- >> 1.7.12.4 >> >