Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2862731lqp; Mon, 25 Mar 2024 11:19:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQwHm0Y+WgbBseDJCz6oj8DIjjlB2hgWZQiONZOqeEr99Jug2ExkPrBYRYDwWoEqSUkYxGZntW+4zo/4tVnYVagLL0KMlNK9T/tOWR7w== X-Google-Smtp-Source: AGHT+IGrFLyrqlalszF74h1x3DfDuouYlnKhtOu1WlDy/9iyXe1I0PTGAmBp6mhrRRfHyaAJtC1B X-Received: by 2002:a25:ce10:0:b0:dcc:d196:a573 with SMTP id x16-20020a25ce10000000b00dccd196a573mr652462ybe.36.1711390740999; Mon, 25 Mar 2024 11:19:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711390740; cv=pass; d=google.com; s=arc-20160816; b=To04oXGwRr3k65xYXaD90kmDnZ/Qst62KLtIBzFMYQCa1n7u4VpqoPRuvfYWZHjyNF SYTfIyaaohwuWyUcO6rnOy+DdgI9qDO55LnIeOTyVa/sHq9aQV9rt+4Ne37FF4/+Q8KR e3C8J/C1rE1TulTQi/g6sKcks/tFLzWdt/P8dQn82mRlp83etULeT2dAZ7Re55tVmC3b UD4wD1P3FOP51frE366vhcpLwg4kd+USgfRPs8T8GS/yqwSk0Uw1mpjo0HNJ/UFV5b7j ZYlgxKwztEhNv7tVB02iwIjgF6d/wmOWO8FjY9cB8hv++mEPhVQKO7lZPQVjiB6Lj4GM MztA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=l5fcOxFZ3SfmeC11WyIW95VQSKzd2HUl5BM/r+GzPq8=; fh=zeEn6yHExKU4mXparRTedxD8eedic3xrrbPcmrvS3Q4=; b=yYMViQ0W8EmAnr5qcZAPApuKTYbPQLht9oa51A8D+JO/WImNgjBROoxHm93ZUOxGYX uM9gG9S8VmVZF0sqBrXi8qnIOdLY5bevqJx3uMvnVczZMNX7CD1/FmeHCvVKrO1EjueT id1UZbjJLVKMYADcRY0A2ZxuQAugfbGF4CbieAdRpOaHMawjX/btCz9Wv+t1WQmIID6t 08RIPZ1f9QWyMOEgHE9Ogy/KrIfR1TNAVMssWK/YHuKdyEaAQPgqPu4/S/dEA2jvO2rQ qASJQWfcLjX27GK5GMT+utpP8RUv1WA8Jsop17SrMpyHKg4Xc6NiPGWObYSaSkDk4Xpz aDHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-117638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117638-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 7-20020a0562140d4700b0069025317ef7si8031190qvr.359.2024.03.25.11.19.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-117638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117638-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B5CD61C3F085 for ; Mon, 25 Mar 2024 18:19:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FE4F6CDD6; Mon, 25 Mar 2024 17:49:58 +0000 (UTC) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF9A25DF05; Mon, 25 Mar 2024 17:49:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711388998; cv=none; b=pgUqCJWajiiZZeBJJX5K4l+H91plbIe4rIYpqlXLrDj0qabzrZI2B/sWvMqvuoty50kAyfNnxCy4iuf7ETLa8AvFV/JNTSNR5H78VO1U4w27yAPPyhJHSJXZtBQRkP5zsji4Ca8r8XJBdflIsqt/Bi4epf0X6WxnIsSVkOkJlkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711388998; c=relaxed/simple; bh=Xs5j6PZ+Amv9lFcBhVEyDHEokVP2Oob/yLxK3hp3P9A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GN8snzcomVIQqP8/jXTWsk4Ot4AHbwIWbMR3NNkLNYQ6IqLirzCCN6Y+Q9NV1tCZBt3h0Fv5ugJkE80GPm1pe7czHYmxw12AMAuuYbfKGAHNyLERraBCs+WqeBEWU1/ueBzPNbDrCFjbyO+Xe+lSmcs5QpoxZsT4VmMynwpPNn0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1dddbeac9f9so29162235ad.3; Mon, 25 Mar 2024 10:49:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711388996; x=1711993796; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=l5fcOxFZ3SfmeC11WyIW95VQSKzd2HUl5BM/r+GzPq8=; b=WLZYPu9tpC5MklmOXHXa0fERCRCVT/GNnO1Ta3PRXr+u+AJL6lgrDvi0Xuc0zGMKUA o4iqNqUBT14wVKNeybY+jCPRR2l1+4LmbT9NfUjKpN16mN7kpp6BwBjq1wbgCjU9Nxnc XoywftRlb7IDDhiS3w/IQbDxl21gtanRIeTcTo1wpHF5PgNvPhS3DzoBcndqpNoCNuy0 HYlU7j35FAkgIyNTU2C7zaBwWyKVU/yY4uMVkOKtPUW9wZggVCnNhULnCw0ANwDXaTuP HdMvSxaoZUlN7IBpu9iKialum2onNUNHkKU9J74oRt9YRg6EsmdW9g/p1B6HB2mu6V7M iWDQ== X-Forwarded-Encrypted: i=1; AJvYcCVhZOHH1HUNofkU1QmgsVzU4hnAIbfTBrJkuNNpH8yQEHttfR6gQ8NaslmRMsJ0Y/yUdIBkV4g2stCyo2EMqKz625BL3HVBrfWHHwlQIWC5hKmUm2gwLq0n+BfkcZi9Y3PmGHIr+/fnmXSQ X-Gm-Message-State: AOJu0Yyua3gKmTV/LkxzXu+8EAtwi0os82PzH/Zn5Lu3jmzxSKeHyo1K DMGY2AJnlmP00shDwruzNC0ldCL5x19cM+686/3YEq3NkU+u4IkNWqWdw8bw X-Received: by 2002:a17:902:7b95:b0:1e0:939d:3d59 with SMTP id w21-20020a1709027b9500b001e0939d3d59mr617515pll.19.1711388995965; Mon, 25 Mar 2024 10:49:55 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id i6-20020a17090332c600b001e0abeb8fb5sm4129931plr.271.2024.03.25.10.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 10:49:54 -0700 (PDT) Date: Mon, 25 Mar 2024 17:49:47 +0000 From: Wei Liu To: "Zhijian Li (Fujitsu)" Cc: Wei Liu , "linux-kernel@vger.kernel.org" , "K. Y. Srinivasan" , Haiyang Zhang , Dexuan Cui , "linux-hyperv@vger.kernel.org" Subject: Re: [PATCH] hv: vmbus: Convert sprintf() family to sysfs_emit() family Message-ID: References: <20240319034350.1574454-1-lizhijian@fujitsu.com> <5c1f6aba-bd3c-438c-8e00-548fe29d8136@fujitsu.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5c1f6aba-bd3c-438c-8e00-548fe29d8136@fujitsu.com> On Mon, Mar 25, 2024 at 09:39:52AM +0000, Zhijian Li (Fujitsu) wrote: > > > On 23/03/2024 07:37, Wei Liu wrote: > > Hi Zhijian, > > > > On Tue, Mar 19, 2024 at 11:43:50AM +0800, Li Zhijian wrote: > >> Per filesystems/sysfs.rst, show() should only use sysfs_emit() > >> or sysfs_emit_at() when formatting the value to be returned to user space. > >> > >> coccinelle complains that there are still a couple of functions that use > >> snprintf(). Convert them to sysfs_emit(). > >> > >> sprintf() and scnprintf() will be converted as well if they have. > > > > This sentence seems to have been cut off halfway. If they have what? > > Is it hard to understand, what I want to say is: > > Sprintf() and scnprintf() will be converted if these files have such abused cases. > > Shall I update it and send a V2? No need. I can fix up the commit message when I apply the patch. Thanks. > > Thanks > Zhijian > > > > > > > The code looks fine. > > > > Thanks, > > Wei.