Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88612C433EF for ; Tue, 30 Nov 2021 06:42:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238746AbhK3GqE (ORCPT ); Tue, 30 Nov 2021 01:46:04 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:32998 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238738AbhK3GqD (ORCPT ); Tue, 30 Nov 2021 01:46:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5CD66B80DB9 for ; Tue, 30 Nov 2021 06:42:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B8FEC53FC1; Tue, 30 Nov 2021 06:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1638254562; bh=XS24QSgj3S1yKkpuEAeM1BU2EG8scdAhuyihTBR3Cqc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f9o5sIRNQlWv2rjjrrSPuSPh5CrjLruyhkPBnbaPYNnjt5w0a8M1zJtNypl+5ADu6 FYq6ytV0jH3Xg38wadRqdB1d3BNrTVMMMwb1PJ/6wB6OxmgUJx+93GlNtqAv/WbIHc yS3WT0y+kvc0l8O0IgQ3vbAaLjij4EUWRN8Go9WY= Date: Tue, 30 Nov 2021 07:42:38 +0100 From: Greg KH To: davidcomponentone@gmail.com Cc: TheSven73@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Yang Guang , Zeal Robot Subject: Re: [PATCH] staging: replace snprintf with sysfs_emit Message-ID: References: <21e2111f6c2590ac24ad15d39e87160f9425045b.1638186054.git.yang.guang5@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21e2111f6c2590ac24ad15d39e87160f9425045b.1638186054.git.yang.guang5@zte.com.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 30, 2021 at 08:07:21AM +0800, davidcomponentone@gmail.com wrote: > From: Yang Guang > > coccinelle report: > ./drivers/staging/fieldbus/dev_core.c:73:8-16: > WARNING: use scnprintf or sprintf > > Use sysfs_emit instead of scnprintf or sprintf makes more sense. > > Reported-by: Zeal Robot No, the coccinelle scripts reported this. > Signed-off-by: Yang Guang None of these email addresses match up with the address you sent this patch from, please fix. thanks, greg k-h