[PATCH v2] uacce: use sysfs_emit instead of sprintf

Greg KH gregkh at linuxfoundation.org
Mon Dec 6 18:25:20 AEDT 2021

On Mon, Dec 06, 2021 at 03:09:43PM +0800, Kai Ye wrote:
> Use the sysfs_emit to replace sprintf. sprintf 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.

For these calls you have replaced, there is no real reason to change as
it is obvious that the buffer is big enough.  So there is no "may cause
output defect" here.

Also, feel free to use the full 72 columns for your changelog text.

> Signed-off-by: Kai Ye <yekai13 at huawei.com>
> changes v1->v2:
> 	modfiy the comments.
> ---

As per the documentation, the "changes..." lines go below the --- line
so that git will remove them automatically.

Please fix up and resend a v3.


greg k-h

More information about the Linux-accelerators mailing list