Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1307678ybk; Thu, 14 May 2020 05:56:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSOmymwnw89M9okVEPrUUT1j/hZK5a0WU88ZsQvLX4qa5UeoENji9EtueE027eMwJfyrj0 X-Received: by 2002:a17:906:935a:: with SMTP id p26mr3845137ejw.103.1589460980576; Thu, 14 May 2020 05:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589460980; cv=none; d=google.com; s=arc-20160816; b=Kqu73ohbvFC3e2Bg9DoAtld8KuFLdVvg4mOhTexAZh/il6xzOFWTtiw1uHCs1bivqi SekqExtgqIIBXRMRr38KjhJvNXszhWOCkF9Wf+gxI7dK/xeaHz1lT7Xez+bNmXzlp1eW eGrP5qPe0Xe1QZzxX10IO5LTc9dyDq2+/Te6Yb5OSo1lH1fJ1leDUd5QI+HdFF8Pkq6/ py4UiuQiIwcdgc7OqN7TD5ThzfwdyVFit4fbDpvMrQflRGnAdz/QQDDrPwAix9NvUXew wBPsnRSvAM1YPRGXL1psjMMWsGQMwpmDzYMHq3sdMbuKuqQMTSGTDqY/eJBSnB3fon4e lbNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fjip1Ie1htf9qxDq8PCAKqJG1NaLpqgyInPG5lEcjjg=; b=ZCebeFbZCwhTmtf0sCg+KJl5dcTvGMgnyx6WGD1VgxGebYM/L4wj9EbMIKcYZsbGGT D9WJqOhLkPXJt9JJBj7WsP/rm23bvXQua8p8wCGX7KqiSR6ss7oVlkEYBPtwnN5ft7Mh /0ZOozKtQyshCfk7PeYRMVkx1A1mEYtUn2AXw/iny2dp+DnO/TTHt5QXQn1AE1d9lrMi tdsWZH3XORfxErMJgFntQMwF+fDhMp3Zvpl2xrVGsdhK6YnBMbB3KcfcVudK6UsQ/jtP nQpUnIymO+Uae7Qf/Hhja6Suh4DY9SqHMqR6H2W9OGlYfBBWmmwP3/FP0W/BOHl9u5ph ufqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=s8j+sgJ6; 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 h10si1732270ejf.487.2020.05.14.05.55.57; Thu, 14 May 2020 05:56:20 -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; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=s8j+sgJ6; 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 S1726142AbgENMy2 (ORCPT + 99 others); Thu, 14 May 2020 08:54:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725955AbgENMy2 (ORCPT ); Thu, 14 May 2020 08:54:28 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1561C061A0E for ; Thu, 14 May 2020 05:54:27 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id yc10so2656160ejb.12 for ; Thu, 14 May 2020 05:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fjip1Ie1htf9qxDq8PCAKqJG1NaLpqgyInPG5lEcjjg=; b=s8j+sgJ6VjR22Fhk0hmQnYiI52B9LgCrmNqp/umlpWvHENy9Oq4RIOO2LNU9//ScHp Jb65xAd2K6Tzz9RZEmY0zr+grD2ZBPGhMRGxJwYl/2iruqAHnF9bQClTGLkjKLh4BoiW 7xOD1/BOSbpjAYVkS8kNx/XXtgVhMQ4tipFy7E4CmWOHFHzlKcK5mXuq1X9a0nr/1Bsj 4XWSneNtstIuLpZqYN/7+J5/NiCjPFmqGBtLlPjQF3GpEMeETzIdHDO132MEjN899nnh xMLkJTrKgRqhFZdTIMn6UyJpPTaisk6Fiv3JpDKAdaY1OsUZjrZ6zmMw7mZFd/TNB4WQ K/7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fjip1Ie1htf9qxDq8PCAKqJG1NaLpqgyInPG5lEcjjg=; b=SlNc869jg1BpevYGLbN5pG/UPuS5S1gh8bzAl65R3kll2eOkB+UbIV3tdaIFY02MRw 4woKl6bLIjKAP8ki6rXKnHgnljmvx5blKdeSCPxVqmxmAjSk31Hkp7GNlw+lyxtWI0ca cy6Y50KsNEBYa2C8lLN033l2nw4pPJh6M4DslA6Uze2WQBQ+udlGTWDnDUVheMCXiEfv TnZAt4G0cSZzvf2aqaa5WV3NVaJGtOhR3Vdo/6JW2iI0NhqOhctzZDaW+FwetEYUK2sB 9Flsl6o2aAoTdgcH1OUp6mItUDBL4Joj/6h6EjR21EOqFgFE1hRExMqR7Quk6bQk9uF6 4t1Q== X-Gm-Message-State: AOAM532jPI1jZyfH/EN7AojxVOkqdhDKfuy5PZjjuS9X0RVW9zKqqimM UAQltQMPlvdCahIfQkHfFb79KSzqGdGT4Y2HiC7pJdlJ X-Received: by 2002:a17:906:390a:: with SMTP id f10mr3647685eje.74.1589460866379; Thu, 14 May 2020 05:54:26 -0700 (PDT) MIME-Version: 1.0 References: <1589186626-17243-1-git-send-email-wangxiongfeng2@huawei.com> In-Reply-To: From: Ezequiel Garcia Date: Thu, 14 May 2020 09:54:15 -0300 Message-ID: Subject: Re: [PATCH] [media] tw686x: add a missing newline when printing parameter 'dma_mode' To: Xiongfeng Wang Cc: Mauro Carvalho Chehab , linux-media , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 May 2020 at 22:32, Xiongfeng Wang wrote: > > 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'. > If you don't have a real reason behind this, such as a documented expectation or something breaking due to this, but just readability, then I don't think it's worth going through _all_ the module parameters fixing this. While I appreciate your effort, this cleanup exceeds the level of nitpicking I care for. Thanks! Ezequiel > 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 > >> > > >