OSDN Git Service

scsi: hisi_sas: Fix the issue of argument mismatch of printing ecc errors
authorXiaofei Tan <tanxiaofei@huawei.com>
Wed, 29 May 2019 09:58:43 +0000 (17:58 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:24 +0000 (19:46 -0400)
commit794327ab53cc6b330774d6fdb93b547666583db9
tree6d2c61b2fe316daf8d77e77ef7f5a5301197354c
parent6c86e046cf97b4a03d6166ba95b3f448455abbb0
scsi: hisi_sas: Fix the issue of argument mismatch of printing ecc errors

The argument of dev_err() called by multi_bit_ecc_error_process_v3_hw() is
not right. We pass two arguments, but there is only one printk format
specifier in the string.

Also move the print format string to dev_err().

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c