Commit 1f95a47e authored by Joe Perches's avatar Joe Perches Committed by Martin K. Petersen

scsi: mpt3sas: Convert logging uses with MPT3SAS_FMT without logging levels

Convert these uses to ioc_<level> where appropriate.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarSuganath Prabu <suganath-prabu.subramani@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 506f7f6b
...@@ -2819,9 +2819,8 @@ _base_enable_msix(struct MPT3SAS_ADAPTER *ioc) ...@@ -2819,9 +2819,8 @@ _base_enable_msix(struct MPT3SAS_ADAPTER *ioc)
ioc->reply_queue_count = min_t(int, ioc->cpu_count, ioc->reply_queue_count = min_t(int, ioc->cpu_count,
ioc->msix_vector_count); ioc->msix_vector_count);
printk(MPT3SAS_FMT "MSI-X vectors supported: %d, no of cores" ioc_info(ioc, "MSI-X vectors supported: %d, no of cores: %d, max_msix_vectors: %d\n",
": %d, max_msix_vectors: %d\n", ioc->name, ioc->msix_vector_count, ioc->msix_vector_count, ioc->cpu_count, max_msix_vectors);
ioc->cpu_count, max_msix_vectors);
if (!ioc->rdpq_array_enable && max_msix_vectors == -1) if (!ioc->rdpq_array_enable && max_msix_vectors == -1)
local_max_msix_vectors = (reset_devices) ? 1 : 8; local_max_msix_vectors = (reset_devices) ? 1 : 8;
...@@ -2886,8 +2885,7 @@ mpt3sas_base_unmap_resources(struct MPT3SAS_ADAPTER *ioc) ...@@ -2886,8 +2885,7 @@ mpt3sas_base_unmap_resources(struct MPT3SAS_ADAPTER *ioc)
{ {
struct pci_dev *pdev = ioc->pdev; struct pci_dev *pdev = ioc->pdev;
dexitprintk(ioc, printk(MPT3SAS_FMT "%s\n", dexitprintk(ioc, ioc_info(ioc, "%s\n", __func__));
ioc->name, __func__));
_base_free_irq(ioc); _base_free_irq(ioc);
_base_disable_msix(ioc); _base_disable_msix(ioc);
...@@ -3007,9 +3005,8 @@ mpt3sas_base_map_resources(struct MPT3SAS_ADAPTER *ioc) ...@@ -3007,9 +3005,8 @@ mpt3sas_base_map_resources(struct MPT3SAS_ADAPTER *ioc)
ioc->combined_reply_index_count, ioc->combined_reply_index_count,
sizeof(resource_size_t *), GFP_KERNEL); sizeof(resource_size_t *), GFP_KERNEL);
if (!ioc->replyPostRegisterIndex) { if (!ioc->replyPostRegisterIndex) {
dfailprintk(ioc, printk(MPT3SAS_FMT dfailprintk(ioc,
"allocation for reply Post Register Index failed!!!\n", ioc_warn(ioc, "allocation for reply Post Register Index failed!!!\n"));
ioc->name));
r = -ENOMEM; r = -ENOMEM;
goto out_fail; goto out_fail;
} }
...@@ -5438,26 +5435,26 @@ _base_wait_for_iocstate(struct MPT3SAS_ADAPTER *ioc, int timeout) ...@@ -5438,26 +5435,26 @@ _base_wait_for_iocstate(struct MPT3SAS_ADAPTER *ioc, int timeout)
u32 ioc_state; u32 ioc_state;
int rc; int rc;
dinitprintk(ioc, printk(MPT3SAS_FMT "%s\n", ioc->name, dinitprintk(ioc, ioc_info(ioc, "%s\n", __func__));
__func__));
if (ioc->pci_error_recovery) { if (ioc->pci_error_recovery) {
dfailprintk(ioc, printk(MPT3SAS_FMT dfailprintk(ioc,
"%s: host in pci error recovery\n", ioc->name, __func__)); ioc_info(ioc, "%s: host in pci error recovery\n",
__func__));
return -EFAULT; return -EFAULT;
} }
ioc_state = mpt3sas_base_get_iocstate(ioc, 0); ioc_state = mpt3sas_base_get_iocstate(ioc, 0);
dhsprintk(ioc, printk(MPT3SAS_FMT "%s: ioc_state(0x%08x)\n", dhsprintk(ioc,
ioc->name, __func__, ioc_state)); ioc_info(ioc, "%s: ioc_state(0x%08x)\n",
__func__, ioc_state));
if (((ioc_state & MPI2_IOC_STATE_MASK) == MPI2_IOC_STATE_READY) || if (((ioc_state & MPI2_IOC_STATE_MASK) == MPI2_IOC_STATE_READY) ||
(ioc_state & MPI2_IOC_STATE_MASK) == MPI2_IOC_STATE_OPERATIONAL) (ioc_state & MPI2_IOC_STATE_MASK) == MPI2_IOC_STATE_OPERATIONAL)
return 0; return 0;
if (ioc_state & MPI2_DOORBELL_USED) { if (ioc_state & MPI2_DOORBELL_USED) {
dhsprintk(ioc, printk(MPT3SAS_FMT dhsprintk(ioc, ioc_info(ioc, "unexpected doorbell active!\n"));
"unexpected doorbell active!\n", ioc->name));
goto issue_diag_reset; goto issue_diag_reset;
} }
...@@ -5469,9 +5466,9 @@ _base_wait_for_iocstate(struct MPT3SAS_ADAPTER *ioc, int timeout) ...@@ -5469,9 +5466,9 @@ _base_wait_for_iocstate(struct MPT3SAS_ADAPTER *ioc, int timeout)
ioc_state = _base_wait_on_iocstate(ioc, MPI2_IOC_STATE_READY, timeout); ioc_state = _base_wait_on_iocstate(ioc, MPI2_IOC_STATE_READY, timeout);
if (ioc_state) { if (ioc_state) {
dfailprintk(ioc, printk(MPT3SAS_FMT dfailprintk(ioc,
"%s: failed going to ready state (ioc_state=0x%x)\n", ioc_info(ioc, "%s: failed going to ready state (ioc_state=0x%x)\n",
ioc->name, __func__, ioc_state)); __func__, ioc_state));
return -EFAULT; return -EFAULT;
} }
...@@ -5498,9 +5495,9 @@ _base_get_ioc_facts(struct MPT3SAS_ADAPTER *ioc) ...@@ -5498,9 +5495,9 @@ _base_get_ioc_facts(struct MPT3SAS_ADAPTER *ioc)
r = _base_wait_for_iocstate(ioc, 10); r = _base_wait_for_iocstate(ioc, 10);
if (r) { if (r) {
dfailprintk(ioc, printk(MPT3SAS_FMT dfailprintk(ioc,
"%s: failed getting to correct state\n", ioc_info(ioc, "%s: failed getting to correct state\n",
ioc->name, __func__)); __func__));
return r; return r;
} }
mpi_reply_sz = sizeof(Mpi2IOCFactsReply_t); mpi_reply_sz = sizeof(Mpi2IOCFactsReply_t);
......
...@@ -4999,15 +4999,15 @@ _scsih_turn_off_pfa_led(struct MPT3SAS_ADAPTER *ioc, ...@@ -4999,15 +4999,15 @@ _scsih_turn_off_pfa_led(struct MPT3SAS_ADAPTER *ioc,
mpi_request.Flags = MPI2_SEP_REQ_FLAGS_ENCLOSURE_SLOT_ADDRESS; mpi_request.Flags = MPI2_SEP_REQ_FLAGS_ENCLOSURE_SLOT_ADDRESS;
if ((mpt3sas_base_scsi_enclosure_processor(ioc, &mpi_reply, if ((mpt3sas_base_scsi_enclosure_processor(ioc, &mpi_reply,
&mpi_request)) != 0) { &mpi_request)) != 0) {
printk(MPT3SAS_FMT "failure at %s:%d/%s()!\n", ioc->name, ioc_err(ioc, "failure at %s:%d/%s()!\n",
__FILE__, __LINE__, __func__); __FILE__, __LINE__, __func__);
return; return;
} }
if (mpi_reply.IOCStatus || mpi_reply.IOCLogInfo) { if (mpi_reply.IOCStatus || mpi_reply.IOCLogInfo) {
dewtprintk(ioc, printk(MPT3SAS_FMT dewtprintk(ioc,
"enclosure_processor: ioc_status (0x%04x), loginfo(0x%08x)\n", ioc_info(ioc, "enclosure_processor: ioc_status (0x%04x), loginfo(0x%08x)\n",
ioc->name, le16_to_cpu(mpi_reply.IOCStatus), le16_to_cpu(mpi_reply.IOCStatus),
le32_to_cpu(mpi_reply.IOCLogInfo))); le32_to_cpu(mpi_reply.IOCLogInfo)));
return; return;
} }
......
...@@ -717,9 +717,9 @@ mpt3sas_transport_port_add(struct MPT3SAS_ADAPTER *ioc, u16 handle, ...@@ -717,9 +717,9 @@ mpt3sas_transport_port_add(struct MPT3SAS_ADAPTER *ioc, u16 handle,
sas_device = mpt3sas_get_sdev_by_addr(ioc, sas_device = mpt3sas_get_sdev_by_addr(ioc,
mpt3sas_port->remote_identify.sas_address); mpt3sas_port->remote_identify.sas_address);
if (!sas_device) { if (!sas_device) {
dfailprintk(ioc, printk(MPT3SAS_FMT dfailprintk(ioc,
"failure at %s:%d/%s()!\n", ioc_info(ioc, "failure at %s:%d/%s()!\n",
ioc->name, __FILE__, __LINE__, __func__)); __FILE__, __LINE__, __func__));
goto out_fail; goto out_fail;
} }
sas_device->pend_sas_rphy_add = 1; sas_device->pend_sas_rphy_add = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment