Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3227234rwo; Mon, 24 Jul 2023 08:04:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlHkbrdfNmpjdpwAt9Fef6tua/nKPcpxP7AQmw/W/kvm+Ktd07mv7QvvFoIY/WMLzBHP9m8V X-Received: by 2002:a17:907:75ec:b0:992:91ce:4508 with SMTP id jz12-20020a17090775ec00b0099291ce4508mr10070163ejc.53.1690211079174; Mon, 24 Jul 2023 08:04:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690211079; cv=pass; d=google.com; s=arc-20160816; b=SHznEBXV8Gh0tPjibA225rxuZOUdBOuzz/W8pLMPhG3BBm+f9C58HRP5d1rEHJbcTZ hEtMA5Rl2b4mF0jVlx90UmtFDH3FsnsmlhlElYdbx0cwl+TPjeXnLlk5Z9V9tgu4hP5N CFenfbhuPieaA/LV67gGffmPPO8mrn0oUmsSWM/jQ3hmF+YRoFOEq0Fh2UvlH2rMvn78 87e3f4eDMbHs9LuNUTaKNg3oYW0bOAQ+N1YLCNrPE9wAgy6ihWMarAZaLKjAteP0YCiY C7JxTwIljakdvnI4VMXGk7xwjc4Y1dk2EMPY9QOrf4ayEvV96loiCixlF9Odn6fOJ/yZ SKEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XPFL9IuYU0OFrHiiQ0Tn/Q6B8pBvS8+PxYspI2D9PRA=; fh=725KFUQZzcfIvlL1LEmp59H6WHzqgY/rj9RTT/hw0+I=; b=sTJaR9r1yuSpnEA30YhjsHhK+rQGHTIjj7GZ4VLCdf0zWifuIyubaA7FqOzW2MIHWA Zn+NVmcBneWyxziXGSLXaWYfUfKHffAfVPkSo6ohMo4jc/ixDzBi5EGg//3gMdHVAOvg 2LlM/cuEIiQ7MsuswvoaBKx2V7/bkOYToJNkEpeBwAtOqag/ARHBaKkeitARVE8txQIA YDtaOFcu497c1bDkJPmkQtHCqnZTciKsHJ0lpooIMfnrSWGC6F5pm1LTYJxO8Sq3Nu3c FZ72WlnoFO7faafEUvBp2GxxpNviudaSX5v6TmNpwexBrm68eUYEnT8Xtkzn1x0+fiLe ZB9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b="W/5Isgxt"; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa8-20020a170906eda800b00988e963c3adsi6828405ejb.755.2023.07.24.08.04.13; Mon, 24 Jul 2023 08:04:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b="W/5Isgxt"; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230362AbjGXO11 (ORCPT + 99 others); Mon, 24 Jul 2023 10:27:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbjGXO1Z (ORCPT ); Mon, 24 Jul 2023 10:27:25 -0400 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2095.outbound.protection.outlook.com [40.107.96.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B72EE67; Mon, 24 Jul 2023 07:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WpRGH8GqX65VsLri36UYWJKXAFGQiNYw11b5mupvMCYp9WJiYat9PQy9Nrg5eHSo8fsroIAz+rTe4oTLGDj46RIUxsbM7HXugftoKdvu7PAgIGaFmJ+sc4iDZwOSg3RsXPfX+c6Uwgaj1yoYVvT7PhCqgqvG/zdIbjrKZoImWfa0SvhLTyG9ImzODaKHd44Qw7R98V7y2iadehnPni/+fRyCW5JTGkd5EAHJM7byhx6O/uFhEifd6d4tUzeB8TnPRI3BR6TMyeWVP9gwmL4TzO1UXXFYEblQBcC084ItOtUXsk8lOysmg2vmnkRS6uuR86K1m0H/oISXPdjyIM8vhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XPFL9IuYU0OFrHiiQ0Tn/Q6B8pBvS8+PxYspI2D9PRA=; b=Ca30ku/VhOY7ikT5vd1h+CTRxfRgUxw33ZbNedFd7bj55NyLIJpWpAPgFysyptLLFmsO1fxc5TgZWhuV3A9wlCqWfo4kFoOh2oiIfNeuSgpNuQK/QZ/DpQWIqW3EJWVOWTAa3/ASBdNl+WMt0r7MIsOtUfxxp4/b7C0jBuQjRhAd4av4Y9ghyhktJBC71KhxznCt3IQDgm1ugiL+GSxVT8Kn2CuQDBupBmGBTbcOZ1uEk/9EJX7gEv6FaloOFzi0oW5P+Fm41F6Xjn9G5KCQXAjlRuD7SIsHdTnafESHS9i8XQOcArsi021d8aWMTdvGwwmJlyIJ0Mx+aLCBO6R6/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XPFL9IuYU0OFrHiiQ0Tn/Q6B8pBvS8+PxYspI2D9PRA=; b=W/5IsgxtZTJS5PXs+4yRFhqYRnQ0cu9FHI3Hik8lKaTOPlpVj6Z/K/z5c4Nt8eJxRxf9rIMK3GHBRRg4mbDHUD2rFEvOqMvpTQhJFK7jQ/avOTeUwNpxKRB6Mh7OwJfONOWh8CvnFz1dkKKhk4r9ZvFLwgJM9Qm+nw0HrQKE+/4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by CO1PR13MB5030.namprd13.prod.outlook.com (2603:10b6:303:f4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.31; Mon, 24 Jul 2023 14:27:19 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::fde7:9821:f2d9:101d]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::fde7:9821:f2d9:101d%7]) with mapi id 15.20.6609.032; Mon, 24 Jul 2023 14:27:19 +0000 Date: Mon, 24 Jul 2023 16:27:12 +0200 From: Simon Horman To: Breno Leitao Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , leit@meta.com, Petr Mladek , "open list:NETWORKING DRIVERS" , open list Subject: Re: [PATCH net-next 1/2] netconsole: Use sysfs_emit() instead of snprintf() Message-ID: References: <20230721092146.4036622-1-leitao@debian.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230721092146.4036622-1-leitao@debian.org> X-ClientProxiedBy: AS4PR10CA0007.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:5dc::9) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|CO1PR13MB5030:EE_ X-MS-Office365-Filtering-Correlation-Id: 39e5e8ae-e1f3-4cca-55ea-08db8c521611 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8iMbpgvgRMdBtV4GeM88LocLGeUrE0Elz2DIZ2baSFScg9DS++K2QDB3FIDMDDZEWRyIVRdfURnjYrp555ADp7I1FWQPhaw1R91/M6YWKMVdI8FlAs/k8o+38Gip4Nr5kuCBJjqLTqcBTHiQBpzxKlOfskCsTwezqca0D254Ey1bY5UJpoWzOg8NBNcVpfM/mbcHeaLdikg50iMmr7vSF0GCRiJLIFa0fzq/V+xYoo36B95ZoEzXNUArdYGOUABWh/3rR/jHxqy2NFN3DFoaI5i+4xeb5vOkBa+Bj/JEmII5EPAVYl0P4aXFZZ8OeQYbIxBuzf5z2GT2Q3NLQOe558ZPtX3LzcN6jyHdl8FrDD6rUHi1CU2QVlFU1kGIE8Eb1OacB5VZHhiZqhFZdaYpw8TdjlH1stJSldkY9vqqRuve8O/coWLxeSKUKx+s8IeMgwsHpGFTZVjmjcpKTXJReJ06709/kf0Fmg/k0H3J5vEAfmO4swMgSQZJ2NPp20xqJaKyyufR/fWOpJqeVOmhT2z8TR9n0KrJz5S9KIYmk4WUgydDmMP0+CtEYGDPf2VHbcUKi8VBQ52JCg0L6bz278FVDYsOWYH/vyac/uIte9Y= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39840400004)(396003)(136003)(366004)(376002)(346002)(451199021)(2906002)(38100700002)(478600001)(8676002)(6512007)(186003)(2616005)(8936002)(86362001)(6506007)(5660300002)(4744005)(36756003)(44832011)(6666004)(6486002)(66476007)(6916009)(4326008)(66556008)(66946007)(316002)(54906003)(41300700001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Dy+ru3CN66ODHpKBZUPpLU8Rwpg4WxacuAuARCWZPFGjh+vrw54H8n1QXbF2?= =?us-ascii?Q?usN9MkGydNgy7SUv+32gUvERsbaaB41xNN3hrH+CPWuyTR0S46Nq/c4wueVl?= =?us-ascii?Q?oMGn+ltrGJekr21k/7hniuZ+EA/yeHJ8EGuOv4/obwSSBbsPDMhXBVdkJ84G?= =?us-ascii?Q?es/ksOvoqfsd0c7unAFOuwmfQCTLvd2oWxWnYmoC8koRgnkcEVvWybMo3soq?= =?us-ascii?Q?He7BQ9nYHmTQIZDtA1R4kYistnDk/1d2DmvXxk0X4pvAy5eXSAM3gToI3zhn?= =?us-ascii?Q?kJxwX3EhMkRsnzWlMOR6awleViTpSDBngpKBqC5zlYhLFJN1pHVhEYbsMpJI?= =?us-ascii?Q?agzny1R9dNqT/W7fKhYs4mIjUj+NEfcchTd+zdf6v0Jzamn14GJ0Kdm/+fpY?= =?us-ascii?Q?BDj/DkaHnt1fuSdDbjGJ+XgLP8/VE7VSPyiN3+dGLoteWEtqdi+CqbxAm90F?= =?us-ascii?Q?vAK/Z3WwTMwLW0JteGz+HaGwY37Ee7sGW+FSQx8t4TfpzyBfNZjEkhjZIBpG?= =?us-ascii?Q?CW5ASGYEBkRMU5WitGMVV2ka+1Qk9y6upS4SRBJR97wqHllmFibL2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zg9lYcmXjPiDRoi4Z/CWgjW2Kp7YLCmJKnNvCpMnAaCS4VHf145a?= =?us-ascii?Q?kCHw4CHNYN5DCchGcY4VDgBH61l4e62cihr009l9QgQLPhNbsCbF2zvwwFDE?= =?us-ascii?Q?5hJ59LeRM+R+9xz4do7vqTzkyqfTAt9e4tpjQcnKgE1gcXV8vd14dhASxxmr?= =?us-ascii?Q?pR7z9CKaKZjP7CS6mFn1oG2UWnlWc/uHgHQyIXrfu3SNAvxyEQ1MS0FYk5Qm?= =?us-ascii?Q?1vbmEw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39e5e8ae-e1f3-4cca-55ea-08db8c521611 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 14:27:19.0546 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bpbCkLG52u5fMvIHC3Hjrf/cYpG7ApQT/u3Km0gP8t2Tyo7Z2f/DYbm2vXKvqAw7J+krR0whDQ11hot3K4A2JilKu/bU/Tpijrh2Qkmu7os= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR13MB5030 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 21, 2023 at 02:21:44AM -0700, Breno Leitao wrote: > According to the sysfs.rst documentation, _show() functions should only > use sysfs_emit() instead of snprintf(). > > Since snprintf() shouldn't be used in the sysfs _show() path, replace it > by sysfs_emit(). > > Suggested-by: Petr Mladek > Signed-off-by: Breno Leitao Reviewed-by: Simon Horman