Re: [PATCH] Crypto : qat: Replace scnprintf with sysfs_emit function

From: Atharv Dubey

Date: Sat Mar 21 2026 - 00:44:23 EST


Sure, I will send a v2 of the patch.

Regards,
Atharv

On 3/21/26 02:40, Giovanni Cabiddu wrote:
Thanks.

Can you re-submit with the headline below?

crypto: qat - replace scnprintf() with sysfs_emit()

On Fri, Mar 20, 2026 at 11:49:28PM +0530, Atharv Dubey wrote:
Replace 3 sysfs functions in the Intel Qat Driver
to use sysfs_emit() instead of scnprintf.
nit. scnprintf().
- erros_correctable_show(): Replace scnprint() with sysfs_emit()
- errors_nonfatal_show(): Replace scnprint() with sysfs_emit()
- errors_fatal_show(): Replace scnprint() with sysfs_emit()

This change is in accordance with Documentation/filesystems/sysfs.rst,
which recommends using sysfs_emit/sysfs_emit_at in all sysfs show()
callbacks for buffer safety, clarity, and consistency.

Signed-off-by: Atharv Dubey <atharvd440@xxxxxxxxx>
---
drivers/crypto/intel/qat/qat_common/adf_sysfs_ras_counters.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Apart from the commit message, it looks fine.

Thanks,