提交 b2fe6be7 编写于 作者: S Suganath Prabu Subramani 提交者: Martin K. Petersen

scsi: mpt3sas: Fix for improper info displayed in var log, while blocking or unblocking the device.

Return value and Device_handle Arguments passed in correct order
 to match with its format string.
Signed-off-by: NChaitra P B <chaitra.basappa@broadcom.com>
Signed-off-by: NSathya Prakash <sathya.prakash@broadcom.com>
Signed-off-by: NSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
Reviewed-by: NHannes Reinecke <hare@suse.com>
Reviewed-by: NTomas Henzl <thenzl@redhat.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 f46e7cd3
...@@ -2837,7 +2837,7 @@ _scsih_internal_device_block(struct scsi_device *sdev, ...@@ -2837,7 +2837,7 @@ _scsih_internal_device_block(struct scsi_device *sdev,
if (r == -EINVAL) if (r == -EINVAL)
sdev_printk(KERN_WARNING, sdev, sdev_printk(KERN_WARNING, sdev,
"device_block failed with return(%d) for handle(0x%04x)\n", "device_block failed with return(%d) for handle(0x%04x)\n",
sas_device_priv_data->sas_target->handle, r); r, sas_device_priv_data->sas_target->handle);
} }
/** /**
...@@ -2867,20 +2867,20 @@ _scsih_internal_device_unblock(struct scsi_device *sdev, ...@@ -2867,20 +2867,20 @@ _scsih_internal_device_unblock(struct scsi_device *sdev,
sdev_printk(KERN_WARNING, sdev, sdev_printk(KERN_WARNING, sdev,
"device_unblock failed with return(%d) for handle(0x%04x) " "device_unblock failed with return(%d) for handle(0x%04x) "
"performing a block followed by an unblock\n", "performing a block followed by an unblock\n",
sas_device_priv_data->sas_target->handle, r); r, sas_device_priv_data->sas_target->handle);
sas_device_priv_data->block = 1; sas_device_priv_data->block = 1;
r = scsi_internal_device_block(sdev); r = scsi_internal_device_block(sdev);
if (r) if (r)
sdev_printk(KERN_WARNING, sdev, "retried device_block " sdev_printk(KERN_WARNING, sdev, "retried device_block "
"failed with return(%d) for handle(0x%04x)\n", "failed with return(%d) for handle(0x%04x)\n",
sas_device_priv_data->sas_target->handle, r); r, sas_device_priv_data->sas_target->handle);
sas_device_priv_data->block = 0; sas_device_priv_data->block = 0;
r = scsi_internal_device_unblock(sdev, SDEV_RUNNING); r = scsi_internal_device_unblock(sdev, SDEV_RUNNING);
if (r) if (r)
sdev_printk(KERN_WARNING, sdev, "retried device_unblock" sdev_printk(KERN_WARNING, sdev, "retried device_unblock"
" failed with return(%d) for handle(0x%04x)\n", " failed with return(%d) for handle(0x%04x)\n",
sas_device_priv_data->sas_target->handle, r); r, sas_device_priv_data->sas_target->handle);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册