From: Xiongfeng Wang <wangxiongfeng2@huawei.com> To: <ezequiel@vanguardiasur.com.ar>, <mchehab@kernel.org> Cc: <linux-media@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <wangxiongfeng2@huawei.com> Subject: [PATCH] [media] tw686x: add a missing newline when printing parameter 'dma_mode' Date: Mon, 11 May 2020 16:43:46 +0800 [thread overview] Message-ID: <1589186626-17243-1-git-send-email-wangxiongfeng2@huawei.com> (raw) 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 <wangxiongfeng2@huawei.com> --- 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
next reply other threads:[~2020-05-11 8:49 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-11 8:43 Xiongfeng Wang [this message] 2020-05-13 19:32 ` Ezequiel Garcia 2020-05-14 1:32 ` Xiongfeng Wang 2020-05-14 12:54 ` Ezequiel Garcia
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1589186626-17243-1-git-send-email-wangxiongfeng2@huawei.com \ --to=wangxiongfeng2@huawei.com \ --cc=ezequiel@vanguardiasur.com.ar \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-media@vger.kernel.org \ --cc=mchehab@kernel.org \ --subject='Re: [PATCH] [media] tw686x: add a missing newline when printing parameter '\''dma_mode'\''' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.