Re: [PATCH 0/2] usb: gadget: Use sysfs_emit instead of sprintf

From: Greg Kroah-Hartman

Date: Sun Feb 01 2026 - 02:29:07 EST


On Sat, Jan 31, 2026 at 09:31:09PM +0530, Krishna Kurapati wrote:
> Use sysfs_emit() instead of sprintf() in configfs attribute show functions.
> sysfs_emit() is the recommended API for sysfs output as it provides buffer
> overflow protection and proper formatting.

But this isn't sysfs, as you say, it's configfs, so why switch? If
there is no need, the churn is not required.

thanks,

greg k-h