Re: [PATCH -next v2] net: hns3: replace snprintf with scnprintf in hns3_dbg_cmd_read

From: David Miller
Date: Tue Jan 21 2020 - 04:49:13 EST


From: Chen Zhou <chenzhou10@xxxxxxxxxx>
Date: Mon, 20 Jan 2020 20:49:43 +0800

> The return value of snprintf may be greater than the size of
> HNS3_DBG_READ_LEN, use scnprintf instead in hns3_dbg_cmd_read.
>
> Signed-off-by: Chen Zhou <chenzhou10@xxxxxxxxxx>
> ---
>
> changes in v2:
> - fix checkpatch style problem.

Both conversion patches applied, thank you.