Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp813801ybk; Wed, 13 May 2020 13:54:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWRCwWD94E57tCdFjPCZ3Rgx3pG20acYkVOPJG7BSyN4xnPDL/g4dhCOcDGjETqFHjd40b X-Received: by 2002:a17:907:2101:: with SMTP id qn1mr845603ejb.207.1589403258651; Wed, 13 May 2020 13:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589403258; cv=none; d=google.com; s=arc-20160816; b=bJjo44PM/rGdkh3Bdb46gX8YopRtDyOz3Z2qkoAGhYSmV4HgjF5GAwe0sNxQDeQztE D6BdQ8jC7r9p3MLaTAH1iISztocq5ii9V1QBM8KP5ufcKdXhD7bAuAUgyEVyahLO1hk3 kpwUQxgi9NeNdPMLKAy3eDa+T3tZsCk1GrjT2uQHewsr5IjsFxFeyu+KHu2HG796DGdP DvgmxHuDlaYWonv2DiYAvWpvVHmrVmPCYaPVZrAXypmdkiPGOWrgHPGTyikDKYguff2+ svgVoJxXBUd6K6y+Z0bb893P9De1XHw2/bSEA9tA56YctuE5bnH3uY3zP6dpEp+aErgH u3Og== 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=BE622nGiTtu6v9vVxV14reu8OE6xnzpoEgMB5sSvex8=; b=st3TTd/9XTrD65IBvJ07QhDWMUooy/e0xNlPkqDeIu4mmlM4iG33CSmF+5V02M518s PzUq/QZrFO72HfSQ8Y2uqPlIRzFCv/S0A89ktZ0mRpKQeSfFs6BMrkI/Z8YXreVgPldH uOSfeS1TI3PKN7SF5rwkxZeMQyO6SKiML6w4nB2RkP41L+5FTEcOp85PC6+tR/9B7NQH WiSW2k/1N2HRVfpLoq0eg+ynpJj62tXsy+jaoS9JkkKzxHoN5dRnKgxmI42VGQjQ7wOx SQcCNK+yJ0o3Lo4xHuN1FGokSKGSdmf8najKXuqry36R7yNNnbacopaUPPJXrbYHI01r mokA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=v8Fz6qm1; 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 i14si422420edx.256.2020.05.13.13.53.56; Wed, 13 May 2020 13:54:18 -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=v8Fz6qm1; 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 S2390519AbgEMTcs (ORCPT + 99 others); Wed, 13 May 2020 15:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1733166AbgEMTcr (ORCPT ); Wed, 13 May 2020 15:32:47 -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 E9B1BC061A0E for ; Wed, 13 May 2020 12:32:45 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id re23so553989ejb.4 for ; Wed, 13 May 2020 12:32:45 -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=BE622nGiTtu6v9vVxV14reu8OE6xnzpoEgMB5sSvex8=; b=v8Fz6qm1UPHcy4fzB1etrJtc5izL/GqEwddtqreXSdnRxvaCZO93lPxWCxy6dYNopO ovTSMdPH5x3EcqCJVFhALEQGdCHBhHOxJcbfjejGwXLVpdyoqWR5grnKsbYXYZBYMTDW jdw79nr8BGsjc84MHBGJGCPWGXXZwQUJRnP+/fUYQH/KFcDG4sQTaAkDVB8uy3r4Kva6 1c7eENLEXz1TDTmM0bZq9Iq19X+gC84bVj2IETeUpm3AzHtoHxtTTygNy6flCIvIIatX 8sbRRDzTOIcjexPkw9H2mGRXMJHZRNgjjEi7x7v3MQgHq21h514+LW7nHsvIA1sRMo47 ddUA== 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=BE622nGiTtu6v9vVxV14reu8OE6xnzpoEgMB5sSvex8=; b=EaqotwrOsycnism/E1xZOHrIYd+NwxW0tqRmM1gcKXciZ6bdLzUfEnlrOugrUhAFiT XRUs+cFijnEWhOpuNfGQBCocARHDLFe+sCHWci28dAotCkJQ0dkUMFK2Jc+Ny65tdGZA 2cvb3QhGX2BDKx6fPULtmCMmsd0ORanoZSz5Sut1Bd0uoPMS7EEAwGrjdrCoOnUw0dSW O04oj2eqrQFR6wmnHVdwP7GmLLtUNH5l8U+WLpPuDJ69hg4X2l4LyKKWfS/IN8dgad1v Cb//Y55DL2JJUwslJHHNuLR54JFmE3+RBp+AsJNIH+DOYxDPIwEhz9nAu7awJ9iUbyyY R25A== X-Gm-Message-State: AOAM530j0tgf41XtAVNsq128p2toMYEwyKe6JZPkXD1HBwr8UTNDVPNh XtlbvvhSu4i27PCF63l1krxyStzWOW9GPw9m+Q3qgA== X-Received: by 2002:a17:906:af6f:: with SMTP id os15mr609937ejb.78.1589398364557; Wed, 13 May 2020 12:32:44 -0700 (PDT) MIME-Version: 1.0 References: <1589186626-17243-1-git-send-email-wangxiongfeng2@huawei.com> In-Reply-To: <1589186626-17243-1-git-send-email-wangxiongfeng2@huawei.com> From: Ezequiel Garcia Date: Wed, 13 May 2020 16:32:33 -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 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? 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 >