Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp74987pxk; Sat, 29 Aug 2020 16:50:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRDauk55d6Q5VHwvZ0sI5elGMkdLga45+BcsTrq17H0qvSOfTwQNKaglxt6JWijuWIHFPY X-Received: by 2002:a05:6402:110e:: with SMTP id u14mr5359858edv.297.1598745057227; Sat, 29 Aug 2020 16:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598745057; cv=none; d=google.com; s=arc-20160816; b=PcVC6Wf0mP2ZPy13Bi9R//5rMeVpxSy7R9/qr9tZSxywS5V5ut8tbucBiBQNRnCro8 y1ozUoOuVDpQbp1molC7oafyVdZM60GOXsg8tikAD5F4ldX+LibC+Zn+z4OVgnM/FJgI zfQPLXFA3zHt0AMpqSlZwTLWf3qspKQ1pS/VuZS5QyLHAMpS2jpvhJvkmUf9I0GpxEvO QNxhy5W9A7VjcgDx5h0neuFvqqZWoSok82gU77DWIijtHXhhBTN98Buz6bzTMIk+m1+b 8aPhngx7oIxHakdO7jwDPLSe0Xr63AlQEoYQHzpEdM4c3ShcT40AHBbUND46e7ww+YXF owPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=rrqXfKFvgp7PaVGZCAW8odvzjMgBPdXKZSygMzhnfE4=; b=FMbkgoWVPkjHbCkJbQQWfNFqdfsy8xn6dU5zOh2EiCIWuVa+2eiuaGcHIjxrZSB3si 6tGUoneA0cijh9l51WnKNM0+lWjFhZHqj6r1vxtoejbwX89okuQrOSa6eXD2/XyuwfN4 2/1myCHiVYzEdcBoRcMNWiesNpRVH5QTTducHA1+c0Vxc0CmY+SQv3JzdVPtdt916+uV /zl8PxRJEf9X/c0vvonE2gtE6P4v7rdbDRuWjE9bdYf8ytPOBxd0RP0Z0wHjqTIKC5AR v4zE7I8XH4RI2TTyKMPJg8lFv+LHOrB00ppj6FBAelR7EyjzmMg2SZdtSDWjXcCTp/4a mT7Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si1895618edt.298.2020.08.29.16.50.34; Sat, 29 Aug 2020 16:50:57 -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; 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 S1728582AbgH2Xt7 (ORCPT + 99 others); Sat, 29 Aug 2020 19:49:59 -0400 Received: from smtprelay0010.hostedemail.com ([216.40.44.10]:56316 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728095AbgH2Xt7 (ORCPT ); Sat, 29 Aug 2020 19:49:59 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 3E5A7837F24A; Sat, 29 Aug 2020 23:49:58 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1537:1566:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3622:3866:3867:3868:3870:3871:3872:3874:4321:5007:10004:10400:11026:11232:11658:11914:12297:12740:12760:12895:13069:13311:13357:13439:14181:14659:21080:21451:21627:30012:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: shock04_2e0f26127082 X-Filterd-Recvd-Size: 1596 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA; Sat, 29 Aug 2020 23:49:56 +0000 (UTC) Message-ID: <461dfa640ae8e98b92ad82b6a5fbef843351d129.camel@perches.com> Subject: Re: [PATCH] sysfs: Add sysfs_emit to replace sprintf to PAGE_SIZE buffers. From: Joe Perches To: Denis Efremov , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Kees Cook , "Gustavo A . R . Silva" , Julia Lawall , Alex Dewar , linux-kernel@vger.kernel.org Date: Sat, 29 Aug 2020 16:49:55 -0700 In-Reply-To: <31462501-a1fc-7470-ce7c-70e7bd9c0d96@linux.com> References: <31462501-a1fc-7470-ce7c-70e7bd9c0d96@linux.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2020-08-30 at 00:53 +0300, Denis Efremov wrote: > > Anyway, this will need updating, likely with better examples. [] > I think it's good to reflect in docs that sysfs_emit_at/sysfs_emit_pos is > only for "legacy" code and should not be used in new code (checkpatch.pl warning?) > because of sysfs design principles. sysfs_emit_at is also used for arrays.