From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 D92553E8C5F for ; Tue, 10 Mar 2026 07:27:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773127661; cv=none; b=QQcmc2/4rCS8IQGdaUccHm3WjgBb0fCEMuslqlzCV2pP8/E88bGXpcMgNqDKw4s2hixEXGVaOq41o3nqXXRZLWw8MJQsazY/2Si0SmgnxLGzN/loj/zpcIBxImm9qrYnkxmI10qpO2Bcl2VyuwjEPxfgJXjWDAzyhggoYzSiQkI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773127661; c=relaxed/simple; bh=VMXnt0+HqWoqS6DNVW6IYqpkIQ1nB/vR8oqo8odb/Xc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YzD7Es6jaNd4z1jb0lt/U3Z4Ad66lEabmB4eOQUisDdyEA8f78jqU0OKPWkAEP+ZEueq1lc1+e5bmADvQN5Clh6J2Wms0vk+vg6lFLPMgT4E6wgODse2q3hBtVt3/Kg6v2nCJbGA/QPQajTJNun4tMUFJkea5TU6idt+U1jEC9c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IAO5cchu; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IAO5cchu" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-4327790c4e9so9687318f8f.2 for ; Tue, 10 Mar 2026 00:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773127658; x=1773732458; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jacTSd+O0Lj2vj9e7jaMto1a5yY4ztTuC0uUl3yJitE=; b=IAO5cchuA1un5AvK1MIZWwHCkmT/Rhj/3Gq3yYhUUb1OJdYmqqrjFTWCweR0JzUbt0 zd0iFDOeLVquHILzlcWM9MYTFhi5Gy6Ez55g01SzhTLXcVFCLtRa5dRb0f7KVmG7uA5W Xo/H2yJ72e2may2D8pj1J8CQ83+0grmsNnmXysWHV0b67AFgZtIcnroHzd9+alPSpp7k wex/eVhVYfK9FzO+AdkWDZZ4WNh1v4Ca24Er8fYQMuTomkvoYDVp2shtV6G1JB5WaYZU NDA7hiAsoT10CM4bR8aFnLFYintraFmPs6kF2kfStrhdh5PPQ/WfVpuQWjpr6NeDlB7m 0HSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773127658; x=1773732458; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jacTSd+O0Lj2vj9e7jaMto1a5yY4ztTuC0uUl3yJitE=; b=bKTvkLixmafpyICJYCD9q8i4i0+OCmiOhySFHTyEy7ZMd2pf7QjZNJKDeQhGeUUYsK JxbT1mssgyz1MzgdcPdQSKvqghieciw8H8da6pVU+8/uCGiC45Vi3f5bVx+Nbpy5/oOS on6IrB0xJPa5Q2C/ROMdzQ5x2qiGSCpnGPKJ0ZbTn7u6QGOlT0rPSVSvh7YIQCQZ2Khu QbSwr6B+lfnOWuK7iijQa3hSpJLaix4ri9n90uOGviPLUHj7d+U6jR26wQx0cb7WuCKP ljuqFeAbyA8WvK6zw2kLBTUWQFk1hQU10qSpw5Qbi7yqQiwDqhutGeWex/Ln8P451m2p 2fPA== X-Forwarded-Encrypted: i=1; AJvYcCWjsJQTXdP/8XVoZqrxQG2dsAKbWzdZ80gMoRi3XSovS89zlNvKbZ1cePGKEFAYhPsEzgRwReZZ4ahskjA=@vger.kernel.org X-Gm-Message-State: AOJu0YwPKhbbeU71K+cyvbyu1PGvcQNuokOLa5EA+jdZW2cTvXXLLi5H kvhNNHUYW4h0NN3hQqN1Zj2Dd6UcSaZHMF7BMGR/Q4NoPz183Spl66kP8P9UInVps7A= X-Gm-Gg: ATEYQzygo1tC8sHkdPUZm/dtC0bpaNVzit94B+mpcoF3WeeYqLwG8giwGXNSvVRiC8K SC+OBzP3crfvsBLT2u0hLP0/R5hurHmniRWdmMWOSp149O+7NpB7u0DLPqYFVsflRzh+pNMrhfS fEApBbMEMQBpr9SkKPPByKCRDW0uo8VFnowLsZ//cAeaQysQP2UjNVgBTruXk8Hor++EFaWgkwK sRvrv7x2oMtNOD5RpxtUXANZF/t0QVSAW4PKA+atl/36K5wj0eqK5EefPjQ9w1X0AXIhluZ7a6j Qh7ubmhI4c9ALJLcLLfGpDHTZrHwz4GmXNQt02xo3539lly9zdILQkec2CHi18J/SzNvhjhUKvr /jKHHqgDZ1eMADPf0/JEQtx5/8x9sFmsK5z9nd/iq7EL2UPHzD4AESBDUyPxAbYvI8OKDxH9shE n27VcN5bB6rj9XlAphMYxazu1gs/abWbQiJWUiaFk= X-Received: by 2002:a05:6000:2404:b0:439:b1be:819f with SMTP id ffacd0b85a97d-439da55ab06mr25127567f8f.2.1773127658187; Tue, 10 Mar 2026 00:27:38 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439dae49177sm32341501f8f.35.2026.03.10.00.27.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2026 00:27:37 -0700 (PDT) Date: Tue, 10 Mar 2026 10:27:34 +0300 From: Dan Carpenter To: Luis Soza Rodriguez Cc: pure.logic@nexus-software.ie, johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Luis Soza Rodriguez Subject: Re: [PATCH v2] staging: greybus: loopback: use sysfs_emit in sysfs show functions Message-ID: References: <20260309230507.4931-1-contact@sluisr.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: <20260309230507.4931-1-contact@sluisr.com> On Mon, Mar 09, 2026 at 05:05:07PM -0600, Luis Soza Rodriguez wrote: > As per the kernel's documentation, sysfs_emit() is the preferred way > to format strings for sysfs attributes. It handles buffer overruns > safely. Replace sprintf calls with sysfs_emit across all loopback > sysfs show macros. > > Signed-off-by: Luis Soza Rodriguez > --- > v2: align backslashes in macros as requested by Dan Carpenter. > Thanks. Reviewed-by: Dan Carpenter regards, dan carpenter