Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp118177pxb; Tue, 2 Feb 2021 00:22:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPpNqTeLuWNf83Zp7x8nWw64wQ7omJXQ0/koQVjHDCaqcTS2cEWATTY/fVCHilCAFJfbjj X-Received: by 2002:aa7:ce05:: with SMTP id d5mr22620976edv.63.1612254177942; Tue, 02 Feb 2021 00:22:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612254177; cv=none; d=google.com; s=arc-20160816; b=NqI5d4qAUAnENVa8I+uNqEhj0nS+nIvF1gb7N9afajpTXPY7Axm4Z5s3mDLkEJYDiN DaYdimkODYJfBqKO9Ve9xOzGFWO3YNKOz+ORgUEwVPHC5FPwXf7DRa5vk1tJboKaCgz6 lOgq1Q+IO9oNze+YL2CdObcTJohMYS5mKza7+r1fO6pwhBECkrwHdm2cbFdyQQ1ZaNLE LxzqoNuIQrLJWeO6SyqM7CV6oJSpurLwQGy7S1n7WAZGNWXf2r/41NxcX/m0NU1Upl4Z BPh6Y8i2XIG/bYF4a6/E+zyXPEwWUX+QX1utgRIQdG4pSyqEyOqSI6hXXCRigPRt1aGH aLdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=yDN4NP52Ywvj/Id7xXscOV7IEjv0UuIanCdu3oQUDQY=; b=r8jd9YloXq4k7yQw0ncPsg4eVwjvnmkbFuTN2XWl8wDDcz8F+cYVPs0e6+IRMZjkvg yZdaa1CQGS7vxuauPjjP8JVnemqUB3OjuPMJrokVdR2jlQdVCDpRgPR1E7PTHx3TPjqI NAQHueFm3Sr72sT87nJLcz6+u8FcPg32bA7GYTuN+s4kJ2HjWbjLDWrSu7KYPChUAzme DbPMsT/E0pdBPkLtTbxdBROO65gJlSWEWRPlBDMr3OS6rfdAJhBVpX5PhRl41tu6XXUL ddy2RfEeFn8fkn2pqjd1jYdvb/0/3f3CerLH/aTG1lAGIlfkDXiQaO+3Wtg9ilurap0e f9YA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si1823348edp.33.2021.02.02.00.22.33; Tue, 02 Feb 2021 00:22:57 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232410AbhBBIVn (ORCPT + 99 others); Tue, 2 Feb 2021 03:21:43 -0500 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:39295 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231718AbhBBIT5 (ORCPT ); Tue, 2 Feb 2021 03:19:57 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UNfe.-m_1612253942; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UNfe.-m_1612253942) by smtp.aliyun-inc.com(127.0.0.1); Tue, 02 Feb 2021 16:19:09 +0800 From: Jiapeng Chong To: jikos@kernel.org Cc: benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] HID: wacom: convert sysfs sprintf/snprintf family to sysfs_emit Date: Tue, 2 Feb 2021 16:19:00 +0800 Message-Id: <1612253940-19396-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./drivers/hid/wacom_sys.c:1828:8-16: WARNING: use scnprintf or sprintf. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hid/wacom_sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index aa9e488..8328ef1 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c @@ -1825,7 +1825,7 @@ static ssize_t wacom_show_speed(struct device *dev, struct hid_device *hdev = to_hid_device(dev); struct wacom *wacom = hid_get_drvdata(hdev); - return snprintf(buf, PAGE_SIZE, "%i\n", wacom->wacom_wac.bt_high_speed); + return sysfs_emit(buf, "%i\n", wacom->wacom_wac.bt_high_speed); } static ssize_t wacom_store_speed(struct device *dev, -- 1.8.3.1