Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4360810pxu; Mon, 12 Oct 2020 17:33:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoEiarB7h7AWIONIc2b6lmTaTTAcXZgGIfGoYYr9rnH99e0Q5PXljly6M6FoSZIYrxHdv0 X-Received: by 2002:a17:906:2894:: with SMTP id o20mr29973715ejd.221.1602549221392; Mon, 12 Oct 2020 17:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602549221; cv=none; d=google.com; s=arc-20160816; b=N5XwTcPjN61lNICmRPHFM4X67a8FgHw9yL4lqtTi3vubA0HDPjJEbY2rLr2ZYUu//T /bmKvbUD/SivVTjfRlbQqACIXZPehZg7XaJylLWEAOfpKAie+qfjyH6dUpllLGqRB0Ir CltvnAwwYlPE9unUn9VxSCdy/Kx/DZqTt4xENWv851tsh2sfHn3bfyp3RPemjIg+Pbmt jdN7MKW4lGHywScADym0j4AMD9b2ohU6nPDC4qjYczCZsRQw7XjhvVWhe6TBdebggnZZ t2H6VDDmwe6B9Wr7xpNwAN8jB0dC/Dhqji23OSivSMJJoqUcVDo0ux2nb1s4MBwdj/C1 JPgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sYh7XbCskUrw/ZT56K8swLXMmQL+oh3ctTY1+4XRfqc=; b=iY7RJ9X0i7WXZJIjTZj/BGbFJvFFD6Vlj88WswGaEBwYhmlm9Wt9yluqvAAD8LCYV0 O5s2IxAvaRQ9tPAsXNpOVmm1rUEi5wGC7mIIAtkj3kyqN47Du1ue3HpHvrCr6+IQCjgh BHUcfSqR3Jne9pyoa5HDBj7741hLmWc/1WxZXli7rUj6J57xHRtk2cBeCUu6MVT5FIHu kF4RGzJyA08acIa0F8rDp7ZPoxHKMwC/QdZDzZ6xj3+PixldcrPFfGqhGzIuQtXYgfmQ AsqxaC3EQxpdn0Fbf8eGNU2R4sAu8fku0a8q5OLGsAcPCS2y3hveXKwZlO3KXiAjLMiz 0M8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Js5Kdabl; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si12789354ejh.192.2020.10.12.17.33.16; Mon, 12 Oct 2020 17:33:41 -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=@kernel.org header.s=default header.b=Js5Kdabl; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389776AbgJLNtR (ORCPT + 99 others); Mon, 12 Oct 2020 09:49:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:56048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731955AbgJLNsX (ORCPT ); Mon, 12 Oct 2020 09:48:23 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 59D4E21BE5; Mon, 12 Oct 2020 13:48:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602510502; bh=Whn8XnJvOHsttyDLbBYWnTyVKBIF5HdEn0aFsAE4mug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Js5KdabllyK/v7ynPHErE7PM3/MdcYDDIih4LbyrWJ4OhZ4PDFgNOoLj3Q3sJ7eKp 1/VAAdEWxSK7MBY5UY79cG/QgrZaLREul+MkcwK9aMa6Xk32TJZ4mQUdxQwm8g9M9X Uh38DJOqoeUoxB60rOEjuadp79WoJtlDKzZZUUDE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xiongfeng Wang , Dmitry Torokhov Subject: [PATCH 5.8 120/124] Input: ati_remote2 - add missing newlines when printing module parameters Date: Mon, 12 Oct 2020 15:32:04 +0200 Message-Id: <20201012133152.663019341@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012133146.834528783@linuxfoundation.org> References: <20201012133146.834528783@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiongfeng Wang commit 37bd9e803daea816f2dc2c8f6dc264097eb3ebd2 upstream. When I cat some module parameters by sysfs, it displays as follows. It's better to add a newline for easy reading. root@syzkaller:~# cat /sys/module/ati_remote2/parameters/mode_mask 0x1froot@syzkaller:~# cat /sys/module/ati_remote2/parameters/channel_mask 0xffffroot@syzkaller:~# Signed-off-by: Xiongfeng Wang Link: https://lore.kernel.org/r/20200720092148.9320-1-wangxiongfeng2@huawei.com Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/misc/ati_remote2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/input/misc/ati_remote2.c +++ b/drivers/input/misc/ati_remote2.c @@ -68,7 +68,7 @@ static int ati_remote2_get_channel_mask( { pr_debug("%s()\n", __func__); - return sprintf(buffer, "0x%04x", *(unsigned int *)kp->arg); + return sprintf(buffer, "0x%04x\n", *(unsigned int *)kp->arg); } static int ati_remote2_set_mode_mask(const char *val, @@ -84,7 +84,7 @@ static int ati_remote2_get_mode_mask(cha { pr_debug("%s()\n", __func__); - return sprintf(buffer, "0x%02x", *(unsigned int *)kp->arg); + return sprintf(buffer, "0x%02x\n", *(unsigned int *)kp->arg); } static unsigned int channel_mask = ATI_REMOTE2_MAX_CHANNEL_MASK;