scsi: mpi3mr: Use scnprintf() instead of snprintf()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Oct 2021 08:30:05 +0000 (11:30 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Oct 2021 02:38:34 +0000 (22:38 -0400)
commit30e99f05f8b19b8274f3666afb70c9cc686ec65c
tree8e7f695c66a64337922b4d701248bc6bc8b04d04
parentc4da1205752dfda13571112dd964436e4cc8f348
scsi: mpi3mr: Use scnprintf() instead of snprintf()

I intended to move from snprintf() to scnprintf() in the previous patch but
I messed up and did not do that.  The result of my bug is that it this
function could trigger a WARN() if the buffer is too large.

Link: https://lore.kernel.org/r/20211013083005.GA8592@kili
Fixes: 76a4f7cc5973 ("scsi: mpi3mr: Clean up mpi3mr_print_ioc_info()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_fw.c