Re: [PATCH] Replace the use of scnprintf() with sysfs_emit_at() in several show functions to format the output into the sysfs buffer.

From: Johannes Thumshirn
Date: Tue Jul 01 2025 - 02:47:50 EST


On Sun, Jun 29, 2025 at 11:23:30PM +0530, herculoxz wrote:
> This change improves clarity and ensures proper bounds checking in
> line with the preferred sysfs_emit() API usage for sysfs 'show'
> functions. The PAGE_SIZE check is now handled internally by the helper.


Can you please a) add an 'mcb:' prefix to the subject and b) make it fit into
~75 chars?

Code wise it looks ok:

Reviewed-by: Johannes Thumshirn <jth@xxxxxxxxxx>