RE: [PATCH v1 1/2] scsi: ufs: Replace sprintf and snprintf with sysfs_emit

From: Avri Altman
Date: Thu Dec 24 2020 - 04:36:33 EST


>
> From: Bean Huo <beanhuo@xxxxxxxxxx>
>
> sprintf and snprintf may cause output defect in sysfs content, it is
> better to use new added sysfs_emit function which knows the size of the
> temporary buffer.
>
> Suggested-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Bean Huo <beanhuo@xxxxxxxxxx>
Reviewed-by: Avri Altman <avri.altman@xxxxxxx>