drivers/scsi/lpfc/: replace __FUNCTION__ with __func__
Subsystems (3)
PATCH 4/5 drivers/scsi/lpfc/: replace __FUNCTION__ with __func__
Signed-off-by Denis ChengRq <[email protected]>
--- drivers/scsi/lpfc/lpfc_init.c | 4 ++-- drivers/scsi/lpfc/lpfc_scsi.c | 2 +- drivers/scsi/lpfc/lpfc_sli.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-)
drivers/scsi/lpfc/lpfc_init.c +2 -2
@@ -2083,7 +2083,7 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid)if (iocbq_entry =NULL ) {printk (KERN_ERR "%s: only allocated %d iocbs of " "expected %d count. Unloading driver.\n" , - __FUNCTION__, i,LPFC_IOCB_LIST_CNT ); + __func__, i,LPFC_IOCB_LIST_CNT ); error = -ENOMEM ; goto out_free_iocbq; }
@@ -2093,7 +2093,7 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid)kfree (iocbq_entry);printk (KERN_ERR "%s: failed to allocate IOTAG. " "Unloading driver.\n" , - __FUNCTION__); + __func__); error = -ENOMEM ; goto out_free_iocbq; }
drivers/scsi/lpfc/lpfc_scsi.c +1 -1
@@ -341,7 +341,7 @@ lpfc_scsi_prep_dma_buf(struct lpfc_hba *phba, struct lpfc_scsi_buf *lpfc_cmd)if (lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt) {printk (KERN_ERR "%s: Too many sg segments from " "dma_map_sg. Config %d, seg_cnt %d" , - __FUNCTION__, phba->cfg_sg_seg_cnt, + __func__, phba->cfg_sg_seg_cnt, lpfc_cmd->seg_cnt);scsi_dma_unmap (scsi_cmnd);return 1 ;
drivers/scsi/lpfc/lpfc_sli.c +3 -3
@@ -219,7 +219,7 @@ lpfc_sli_iocb_cmd_type(uint8_t iocb_cmnd)case CMD_IOCB_LOGENTRY_CN :case CMD_IOCB_LOGENTRY_ASYNC_CN :printk ("%s - Unhandled SLI-3 Command x%x\n" , - __FUNCTION__, iocb_cmnd); + __func__, iocb_cmnd); type =LPFC_UNKNOWN_IOCB ;break ;default :
@@ -1715,7 +1715,7 @@ lpfc_sli_handle_slow_ring_event(struct lpfc_hba *phba, rspiocbp =__lpfc_sli_get_iocbq (phba);if (rspiocbp =NULL ) {printk (KERN_ERR "%s: out of buffers! Failing " -"completion.\n" , __FUNCTION__); +"completion.\n" , __func__);break ; }
@@ -3793,7 +3793,7 @@ lpfc_sli_validate_fcp_iocb(struct lpfc_iocbq *iocbq, struct lpfc_vport *vport,break ;default :printk (KERN_ERR "%s: Unknown context cmd type, value %d\n" , - __FUNCTION__, ctx_cmd); + __func__, ctx_cmd);break ; }
Signature · 1 line
1.5.6.3