[SCSI] replace __FUNCTION__ with __func__

[jejb: fixed up a ton of missed conversions.

All of you are on notice this has happened, driver trees will now
need to be rebased]

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: SCSI List <linux-scsi@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

authored by

Harvey Harrison and committed by
James Bottomley
cadbd4a5 2b142900

+235 -235
+12 -12
drivers/message/fusion/mptbase.c
··· 273 ioc_raw_state = mpt_GetIocState(ioc, 0); 274 if ((ioc_raw_state & MPI_IOC_STATE_MASK) == MPI_IOC_STATE_FAULT) { 275 printk(MYIOC_s_WARN_FMT "IOC is in FAULT state (%04xh)!!!\n", 276 - ioc->name, ioc_raw_state & MPI_DOORBELL_DATA_MASK); 277 printk(MYIOC_s_WARN_FMT "Issuing HardReset from %s!!\n", 278 - ioc->name, __FUNCTION__); 279 rc = mpt_HardResetHandler(ioc, CAN_SLEEP); 280 printk(MYIOC_s_WARN_FMT "%s: HardReset: %s\n", ioc->name, 281 - __FUNCTION__, (rc == 0) ? "success" : "failed"); 282 ioc_raw_state = mpt_GetIocState(ioc, 0); 283 if ((ioc_raw_state & MPI_IOC_STATE_MASK) == MPI_IOC_STATE_FAULT) 284 printk(MYIOC_s_WARN_FMT "IOC is in FAULT state after " ··· 356 if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS || 357 MptCallbacks[cb_idx] == NULL) { 358 printk(MYIOC_s_WARN_FMT "%s: Invalid cb_idx (%d)!\n", 359 - __FUNCTION__, ioc->name, cb_idx); 360 goto out; 361 } 362 ··· 420 if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS || 421 MptCallbacks[cb_idx] == NULL) { 422 printk(MYIOC_s_WARN_FMT "%s: Invalid cb_idx (%d)!\n", 423 - __FUNCTION__, ioc->name, cb_idx); 424 freeme = 0; 425 goto out; 426 } ··· 2434 2435 if (ioc->cached_fw != NULL) { 2436 ddlprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s: Pushing FW onto " 2437 - "adapter\n", __FUNCTION__, ioc->name)); 2438 if ((ret = mpt_downloadboot(ioc, (MpiFwHeader_t *) 2439 ioc->cached_fw, CAN_SLEEP)) < 0) { 2440 printk(MYIOC_s_WARN_FMT ··· 3693 3694 if (ioc->pcidev->device == MPI_MANUFACTPAGE_DEVID_SAS1078) { 3695 drsprintk(ioc, printk(MYIOC_s_WARN_FMT "%s: Doorbell=%p; 1078 reset " 3696 - "address=%p\n", ioc->name, __FUNCTION__, 3697 &ioc->chip->Doorbell, &ioc->chip->Reset_1078)); 3698 CHIPREG_WRITE32(&ioc->chip->Reset_1078, 0x07); 3699 if (sleepFlag == CAN_SLEEP) ··· 4742 break; 4743 } 4744 4745 - printk("%s: persist_opcode=%x\n",__FUNCTION__, persist_opcode); 4746 4747 /* Get a MF for this command. 4748 */ 4749 if ((mf = mpt_get_msg_frame(mpt_base_index, ioc)) == NULL) { 4750 - printk("%s: no msg frames!\n",__FUNCTION__); 4751 return -1; 4752 } 4753 ··· 4771 (SasIoUnitControlReply_t *)ioc->persist_reply_frame; 4772 if (le16_to_cpu(sasIoUnitCntrReply->IOCStatus) != MPI_IOCSTATUS_SUCCESS) { 4773 printk("%s: IOCStatus=0x%X IOCLogInfo=0x%X\n", 4774 - __FUNCTION__, 4775 sasIoUnitCntrReply->IOCStatus, 4776 sasIoUnitCntrReply->IOCLogInfo); 4777 return -1; 4778 } 4779 4780 - printk("%s: success\n",__FUNCTION__); 4781 return 0; 4782 } 4783 ··· 5784 5785 if ((pAck = (EventAck_t *) mpt_get_msg_frame(mpt_base_index, ioc)) == NULL) { 5786 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, no msg frames!!\n", 5787 - ioc->name,__FUNCTION__)); 5788 return -1; 5789 } 5790
··· 273 ioc_raw_state = mpt_GetIocState(ioc, 0); 274 if ((ioc_raw_state & MPI_IOC_STATE_MASK) == MPI_IOC_STATE_FAULT) { 275 printk(MYIOC_s_WARN_FMT "IOC is in FAULT state (%04xh)!!!\n", 276 + ioc->name, ioc_raw_state & MPI_DOORBELL_DATA_MASK); 277 printk(MYIOC_s_WARN_FMT "Issuing HardReset from %s!!\n", 278 + ioc->name, __func__); 279 rc = mpt_HardResetHandler(ioc, CAN_SLEEP); 280 printk(MYIOC_s_WARN_FMT "%s: HardReset: %s\n", ioc->name, 281 + __func__, (rc == 0) ? "success" : "failed"); 282 ioc_raw_state = mpt_GetIocState(ioc, 0); 283 if ((ioc_raw_state & MPI_IOC_STATE_MASK) == MPI_IOC_STATE_FAULT) 284 printk(MYIOC_s_WARN_FMT "IOC is in FAULT state after " ··· 356 if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS || 357 MptCallbacks[cb_idx] == NULL) { 358 printk(MYIOC_s_WARN_FMT "%s: Invalid cb_idx (%d)!\n", 359 + __func__, ioc->name, cb_idx); 360 goto out; 361 } 362 ··· 420 if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS || 421 MptCallbacks[cb_idx] == NULL) { 422 printk(MYIOC_s_WARN_FMT "%s: Invalid cb_idx (%d)!\n", 423 + __func__, ioc->name, cb_idx); 424 freeme = 0; 425 goto out; 426 } ··· 2434 2435 if (ioc->cached_fw != NULL) { 2436 ddlprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s: Pushing FW onto " 2437 + "adapter\n", __func__, ioc->name)); 2438 if ((ret = mpt_downloadboot(ioc, (MpiFwHeader_t *) 2439 ioc->cached_fw, CAN_SLEEP)) < 0) { 2440 printk(MYIOC_s_WARN_FMT ··· 3693 3694 if (ioc->pcidev->device == MPI_MANUFACTPAGE_DEVID_SAS1078) { 3695 drsprintk(ioc, printk(MYIOC_s_WARN_FMT "%s: Doorbell=%p; 1078 reset " 3696 + "address=%p\n", ioc->name, __func__, 3697 &ioc->chip->Doorbell, &ioc->chip->Reset_1078)); 3698 CHIPREG_WRITE32(&ioc->chip->Reset_1078, 0x07); 3699 if (sleepFlag == CAN_SLEEP) ··· 4742 break; 4743 } 4744 4745 + printk("%s: persist_opcode=%x\n",__func__, persist_opcode); 4746 4747 /* Get a MF for this command. 4748 */ 4749 if ((mf = mpt_get_msg_frame(mpt_base_index, ioc)) == NULL) { 4750 + printk("%s: no msg frames!\n",__func__); 4751 return -1; 4752 } 4753 ··· 4771 (SasIoUnitControlReply_t *)ioc->persist_reply_frame; 4772 if (le16_to_cpu(sasIoUnitCntrReply->IOCStatus) != MPI_IOCSTATUS_SUCCESS) { 4773 printk("%s: IOCStatus=0x%X IOCLogInfo=0x%X\n", 4774 + __func__, 4775 sasIoUnitCntrReply->IOCStatus, 4776 sasIoUnitCntrReply->IOCLogInfo); 4777 return -1; 4778 } 4779 4780 + printk("%s: success\n",__func__); 4781 return 0; 4782 } 4783 ··· 5784 5785 if ((pAck = (EventAck_t *) mpt_get_msg_frame(mpt_base_index, ioc)) == NULL) { 5786 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, no msg frames!!\n", 5787 + ioc->name,__func__)); 5788 return -1; 5789 } 5790
+2 -2
drivers/message/fusion/mptctl.c
··· 505 event = le32_to_cpu(pEvReply->Event) & 0xFF; 506 507 dctlprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s() called\n", 508 - ioc->name, __FUNCTION__)); 509 if(async_queue == NULL) 510 return 1; 511 ··· 2482 */ 2483 if ((mf = mpt_get_msg_frame(mptctl_id, ioc)) == NULL) { 2484 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, no msg frames!!\n", 2485 - ioc->name,__FUNCTION__)); 2486 goto out; 2487 } 2488
··· 505 event = le32_to_cpu(pEvReply->Event) & 0xFF; 506 507 dctlprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s() called\n", 508 + ioc->name, __func__)); 509 if(async_queue == NULL) 510 return 1; 511 ··· 2482 */ 2483 if ((mf = mpt_get_msg_frame(mptctl_id, ioc)) == NULL) { 2484 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, no msg frames!!\n", 2485 + ioc->name,__func__)); 2486 goto out; 2487 } 2488
+4 -4
drivers/message/fusion/mptfc.c
··· 231 mptfc_abort(struct scsi_cmnd *SCpnt) 232 { 233 return 234 - mptfc_block_error_handler(SCpnt, mptscsih_abort, __FUNCTION__); 235 } 236 237 static int 238 mptfc_dev_reset(struct scsi_cmnd *SCpnt) 239 { 240 return 241 - mptfc_block_error_handler(SCpnt, mptscsih_dev_reset, __FUNCTION__); 242 } 243 244 static int 245 mptfc_bus_reset(struct scsi_cmnd *SCpnt) 246 { 247 return 248 - mptfc_block_error_handler(SCpnt, mptscsih_bus_reset, __FUNCTION__); 249 } 250 251 static int 252 mptfc_host_reset(struct scsi_cmnd *SCpnt) 253 { 254 return 255 - mptfc_block_error_handler(SCpnt, mptscsih_host_reset, __FUNCTION__); 256 } 257 258 static void
··· 231 mptfc_abort(struct scsi_cmnd *SCpnt) 232 { 233 return 234 + mptfc_block_error_handler(SCpnt, mptscsih_abort, __func__); 235 } 236 237 static int 238 mptfc_dev_reset(struct scsi_cmnd *SCpnt) 239 { 240 return 241 + mptfc_block_error_handler(SCpnt, mptscsih_dev_reset, __func__); 242 } 243 244 static int 245 mptfc_bus_reset(struct scsi_cmnd *SCpnt) 246 { 247 return 248 + mptfc_block_error_handler(SCpnt, mptscsih_bus_reset, __func__); 249 } 250 251 static int 252 mptfc_host_reset(struct scsi_cmnd *SCpnt) 253 { 254 return 255 + mptfc_block_error_handler(SCpnt, mptscsih_host_reset, __func__); 256 } 257 258 static void
+13 -13
drivers/message/fusion/mptlan.c
··· 610 611 dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, skb %p sent.\n", 612 IOC_AND_NETDEV_NAMES_s_s(dev), 613 - __FUNCTION__, sent)); 614 615 priv->SendCtl[ctx].skb = NULL; 616 pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[ctx].dma, ··· 676 677 dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, skb %p sent.\n", 678 IOC_AND_NETDEV_NAMES_s_s(dev), 679 - __FUNCTION__, sent)); 680 681 priv->SendCtl[ctx].skb = NULL; 682 pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[ctx].dma, ··· 715 u16 cur_naa = 0x1000; 716 717 dioprintk((KERN_INFO MYNAM ": %s called, skb_addr = %p\n", 718 - __FUNCTION__, skb)); 719 720 spin_lock_irqsave(&priv->txfidx_lock, flags); 721 if (priv->mpt_txfidx_tail < 0) { ··· 723 spin_unlock_irqrestore(&priv->txfidx_lock, flags); 724 725 printk (KERN_ERR "%s: no tx context available: %u\n", 726 - __FUNCTION__, priv->mpt_txfidx_tail); 727 return 1; 728 } 729 ··· 733 spin_unlock_irqrestore(&priv->txfidx_lock, flags); 734 735 printk (KERN_ERR "%s: Unable to alloc request frame\n", 736 - __FUNCTION__); 737 return 1; 738 } 739 ··· 1208 1209 dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, Start_buckets = %u, buckets_out = %u\n", 1210 IOC_AND_NETDEV_NAMES_s_s(dev), 1211 - __FUNCTION__, buckets, curr)); 1212 1213 max = (mpt_dev->req_sz - MPT_LAN_RECEIVE_POST_REQUEST_SIZE) / 1214 (MPT_LAN_TRANSACTION32_SIZE + sizeof(SGESimple64_t)); ··· 1217 mf = mpt_get_msg_frame(LanCtx, mpt_dev); 1218 if (mf == NULL) { 1219 printk (KERN_ERR "%s: Unable to alloc request frame\n", 1220 - __FUNCTION__); 1221 dioprintk((KERN_ERR "%s: %u buckets remaining\n", 1222 - __FUNCTION__, buckets)); 1223 goto out; 1224 } 1225 pRecvReq = (LANReceivePostRequest_t *) mf; ··· 1244 spin_lock_irqsave(&priv->rxfidx_lock, flags); 1245 if (priv->mpt_rxfidx_tail < 0) { 1246 printk (KERN_ERR "%s: Can't alloc context\n", 1247 - __FUNCTION__); 1248 spin_unlock_irqrestore(&priv->rxfidx_lock, 1249 flags); 1250 break; ··· 1267 if (skb == NULL) { 1268 printk (KERN_WARNING 1269 MYNAM "/%s: Can't alloc skb\n", 1270 - __FUNCTION__); 1271 priv->mpt_rxfidx[++priv->mpt_rxfidx_tail] = ctx; 1272 spin_unlock_irqrestore(&priv->rxfidx_lock, flags); 1273 break; ··· 1305 1306 if (pSimple == NULL) { 1307 /**/ printk (KERN_WARNING MYNAM "/%s: No buckets posted\n", 1308 - /**/ __FUNCTION__); 1309 mpt_free_msg_frame(mpt_dev, mf); 1310 goto out; 1311 } ··· 1329 1330 out: 1331 dioprintk((KERN_INFO MYNAM "/%s: End_buckets = %u, priv->buckets_out = %u\n", 1332 - __FUNCTION__, buckets, atomic_read(&priv->buckets_out))); 1333 dioprintk((KERN_INFO MYNAM "/%s: Posted %u buckets and received %u back\n", 1334 - __FUNCTION__, priv->total_posted, priv->total_received)); 1335 1336 clear_bit(0, &priv->post_buckets_active); 1337 }
··· 610 611 dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, skb %p sent.\n", 612 IOC_AND_NETDEV_NAMES_s_s(dev), 613 + __func__, sent)); 614 615 priv->SendCtl[ctx].skb = NULL; 616 pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[ctx].dma, ··· 676 677 dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, skb %p sent.\n", 678 IOC_AND_NETDEV_NAMES_s_s(dev), 679 + __func__, sent)); 680 681 priv->SendCtl[ctx].skb = NULL; 682 pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[ctx].dma, ··· 715 u16 cur_naa = 0x1000; 716 717 dioprintk((KERN_INFO MYNAM ": %s called, skb_addr = %p\n", 718 + __func__, skb)); 719 720 spin_lock_irqsave(&priv->txfidx_lock, flags); 721 if (priv->mpt_txfidx_tail < 0) { ··· 723 spin_unlock_irqrestore(&priv->txfidx_lock, flags); 724 725 printk (KERN_ERR "%s: no tx context available: %u\n", 726 + __func__, priv->mpt_txfidx_tail); 727 return 1; 728 } 729 ··· 733 spin_unlock_irqrestore(&priv->txfidx_lock, flags); 734 735 printk (KERN_ERR "%s: Unable to alloc request frame\n", 736 + __func__); 737 return 1; 738 } 739 ··· 1208 1209 dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, Start_buckets = %u, buckets_out = %u\n", 1210 IOC_AND_NETDEV_NAMES_s_s(dev), 1211 + __func__, buckets, curr)); 1212 1213 max = (mpt_dev->req_sz - MPT_LAN_RECEIVE_POST_REQUEST_SIZE) / 1214 (MPT_LAN_TRANSACTION32_SIZE + sizeof(SGESimple64_t)); ··· 1217 mf = mpt_get_msg_frame(LanCtx, mpt_dev); 1218 if (mf == NULL) { 1219 printk (KERN_ERR "%s: Unable to alloc request frame\n", 1220 + __func__); 1221 dioprintk((KERN_ERR "%s: %u buckets remaining\n", 1222 + __func__, buckets)); 1223 goto out; 1224 } 1225 pRecvReq = (LANReceivePostRequest_t *) mf; ··· 1244 spin_lock_irqsave(&priv->rxfidx_lock, flags); 1245 if (priv->mpt_rxfidx_tail < 0) { 1246 printk (KERN_ERR "%s: Can't alloc context\n", 1247 + __func__); 1248 spin_unlock_irqrestore(&priv->rxfidx_lock, 1249 flags); 1250 break; ··· 1267 if (skb == NULL) { 1268 printk (KERN_WARNING 1269 MYNAM "/%s: Can't alloc skb\n", 1270 + __func__); 1271 priv->mpt_rxfidx[++priv->mpt_rxfidx_tail] = ctx; 1272 spin_unlock_irqrestore(&priv->rxfidx_lock, flags); 1273 break; ··· 1305 1306 if (pSimple == NULL) { 1307 /**/ printk (KERN_WARNING MYNAM "/%s: No buckets posted\n", 1308 + /**/ __func__); 1309 mpt_free_msg_frame(mpt_dev, mf); 1310 goto out; 1311 } ··· 1329 1330 out: 1331 dioprintk((KERN_INFO MYNAM "/%s: End_buckets = %u, priv->buckets_out = %u\n", 1332 + __func__, buckets, atomic_read(&priv->buckets_out))); 1333 dioprintk((KERN_INFO MYNAM "/%s: Posted %u buckets and received %u back\n", 1334 + __func__, priv->total_posted, priv->total_received)); 1335 1336 clear_bit(0, &priv->post_buckets_active); 1337 }
+27 -27
drivers/message/fusion/mptsas.c
··· 300 phy_info = port_info->phy_info; 301 302 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s: [%p]: num_phys=%02d " 303 - "bitmask=0x%016llX\n", ioc->name, __FUNCTION__, port_details, 304 port_details->num_phys, (unsigned long long) 305 port_details->phy_bitmask)); 306 ··· 411 */ 412 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT 413 "%s: [%p]: deleting phy = %d\n", 414 - ioc->name, __FUNCTION__, port_details, i)); 415 port_details->num_phys--; 416 port_details->phy_bitmask &= ~ (1 << phy_info->phy_id); 417 memset(&phy_info->attached, 0, sizeof(struct mptsas_devinfo)); ··· 497 continue; 498 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT 499 "%s: [%p]: phy_id=%02d num_phys=%02d " 500 - "bitmask=0x%016llX\n", ioc->name, __FUNCTION__, 501 port_details, i, port_details->num_phys, 502 (unsigned long long)port_details->phy_bitmask)); 503 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "\t\tport = %p rphy=%p\n", ··· 553 554 if ((mf = mpt_get_msg_frame(ioc->TaskCtx, ioc)) == NULL) { 555 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, no msg frames @%d!!\n", 556 - ioc->name,__FUNCTION__, __LINE__)); 557 return 0; 558 } 559 ··· 606 GFP_ATOMIC); 607 if (!target_reset_list) { 608 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, failed to allocate mem @%d..!!\n", 609 - ioc->name,__FUNCTION__, __LINE__)); 610 return; 611 } 612 ··· 673 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); 674 if (!ev) { 675 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, failed to allocate mem @%d..!!\n", 676 - ioc->name,__FUNCTION__, __LINE__)); 677 return; 678 } 679 ··· 1183 reply = (SasIoUnitControlReply_t *)ioc->sas_mgmt.reply; 1184 if (reply->IOCStatus != MPI_IOCSTATUS_SUCCESS) { 1185 printk(MYIOC_s_INFO_FMT "%s: IOCStatus=0x%X IOCLogInfo=0x%X\n", 1186 - ioc->name, __FUNCTION__, reply->IOCStatus, reply->IOCLogInfo); 1187 error = -ENXIO; 1188 goto out_unlock; 1189 } ··· 1270 1271 if (!rsp) { 1272 printk(MYIOC_s_ERR_FMT "%s: the smp response space is missing\n", 1273 - ioc->name, __FUNCTION__); 1274 return -EINVAL; 1275 } 1276 1277 /* do we need to support multiple segments? */ 1278 if (req->bio->bi_vcnt > 1 || rsp->bio->bi_vcnt > 1) { 1279 printk(MYIOC_s_ERR_FMT "%s: multiple segments req %u %u, rsp %u %u\n", 1280 - ioc->name, __FUNCTION__, req->bio->bi_vcnt, req->data_len, 1281 rsp->bio->bi_vcnt, rsp->data_len); 1282 return -EINVAL; 1283 } ··· 1343 1344 timeleft = wait_for_completion_timeout(&ioc->sas_mgmt.done, 10 * HZ); 1345 if (!timeleft) { 1346 - printk(MYIOC_s_ERR_FMT "%s: smp timeout!\n", ioc->name, __FUNCTION__); 1347 /* On timeout reset the board */ 1348 mpt_HardResetHandler(ioc, CAN_SLEEP); 1349 ret = -ETIMEDOUT; ··· 1361 rsp->data_len -= smprep->ResponseDataLength; 1362 } else { 1363 printk(MYIOC_s_ERR_FMT "%s: smp passthru reply failed to be returned\n", 1364 - ioc->name, __FUNCTION__); 1365 ret = -ENXIO; 1366 } 1367 unmap: ··· 2006 if (error) { 2007 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2008 "%s: exit at line=%d\n", ioc->name, 2009 - __FUNCTION__, __LINE__)); 2010 goto out; 2011 } 2012 mptsas_set_port(ioc, phy_info, port); ··· 2076 if (!rphy) { 2077 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2078 "%s: exit at line=%d\n", ioc->name, 2079 - __FUNCTION__, __LINE__)); 2080 goto out; 2081 } 2082 ··· 2085 if (error) { 2086 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2087 "%s: exit at line=%d\n", ioc->name, 2088 - __FUNCTION__, __LINE__)); 2089 sas_rphy_free(rphy); 2090 goto out; 2091 } ··· 2613 (ev->channel << 8) + ev->id)) { 2614 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2615 "%s: exit at line=%d\n", ioc->name, 2616 - __FUNCTION__, __LINE__)); 2617 break; 2618 } 2619 phy_info = mptsas_find_phyinfo_by_sas_address( ··· 2633 if (!phy_info){ 2634 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2635 "%s: exit at line=%d\n", ioc->name, 2636 - __FUNCTION__, __LINE__)); 2637 break; 2638 } 2639 if (!phy_info->port_details) { 2640 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2641 "%s: exit at line=%d\n", ioc->name, 2642 - __FUNCTION__, __LINE__)); 2643 break; 2644 } 2645 rphy = mptsas_get_rphy(phy_info); 2646 if (!rphy) { 2647 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2648 "%s: exit at line=%d\n", ioc->name, 2649 - __FUNCTION__, __LINE__)); 2650 break; 2651 } 2652 ··· 2654 if (!port) { 2655 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2656 "%s: exit at line=%d\n", ioc->name, 2657 - __FUNCTION__, __LINE__)); 2658 break; 2659 } 2660 ··· 2665 if (!vtarget) { 2666 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2667 "%s: exit at line=%d\n", ioc->name, 2668 - __FUNCTION__, __LINE__)); 2669 break; 2670 } 2671 ··· 2720 (ev->channel << 8) + ev->id)) { 2721 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2722 "%s: exit at line=%d\n", ioc->name, 2723 - __FUNCTION__, __LINE__)); 2724 break; 2725 } 2726 ··· 2732 if (!phy_info || !phy_info->port_details) { 2733 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2734 "%s: exit at line=%d\n", ioc->name, 2735 - __FUNCTION__, __LINE__)); 2736 break; 2737 } 2738 ··· 2744 if (!vtarget) { 2745 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2746 "%s: exit at line=%d\n", ioc->name, 2747 - __FUNCTION__, __LINE__)); 2748 break; 2749 } 2750 /* ··· 2767 if (mptsas_get_rphy(phy_info)) { 2768 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2769 "%s: exit at line=%d\n", ioc->name, 2770 - __FUNCTION__, __LINE__)); 2771 if (ev->channel) printk("%d\n", __LINE__); 2772 break; 2773 } ··· 2776 if (!port) { 2777 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2778 "%s: exit at line=%d\n", ioc->name, 2779 - __FUNCTION__, __LINE__)); 2780 break; 2781 } 2782 memcpy(&phy_info->attached, &sas_device, ··· 2801 if (!rphy) { 2802 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2803 "%s: exit at line=%d\n", ioc->name, 2804 - __FUNCTION__, __LINE__)); 2805 break; /* non-fatal: an rphy can be added later */ 2806 } 2807 ··· 2809 if (sas_rphy_add(rphy)) { 2810 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2811 "%s: exit at line=%d\n", ioc->name, 2812 - __FUNCTION__, __LINE__)); 2813 sas_rphy_free(rphy); 2814 break; 2815 }
··· 300 phy_info = port_info->phy_info; 301 302 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s: [%p]: num_phys=%02d " 303 + "bitmask=0x%016llX\n", ioc->name, __func__, port_details, 304 port_details->num_phys, (unsigned long long) 305 port_details->phy_bitmask)); 306 ··· 411 */ 412 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT 413 "%s: [%p]: deleting phy = %d\n", 414 + ioc->name, __func__, port_details, i)); 415 port_details->num_phys--; 416 port_details->phy_bitmask &= ~ (1 << phy_info->phy_id); 417 memset(&phy_info->attached, 0, sizeof(struct mptsas_devinfo)); ··· 497 continue; 498 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT 499 "%s: [%p]: phy_id=%02d num_phys=%02d " 500 + "bitmask=0x%016llX\n", ioc->name, __func__, 501 port_details, i, port_details->num_phys, 502 (unsigned long long)port_details->phy_bitmask)); 503 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "\t\tport = %p rphy=%p\n", ··· 553 554 if ((mf = mpt_get_msg_frame(ioc->TaskCtx, ioc)) == NULL) { 555 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, no msg frames @%d!!\n", 556 + ioc->name,__func__, __LINE__)); 557 return 0; 558 } 559 ··· 606 GFP_ATOMIC); 607 if (!target_reset_list) { 608 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, failed to allocate mem @%d..!!\n", 609 + ioc->name,__func__, __LINE__)); 610 return; 611 } 612 ··· 673 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); 674 if (!ev) { 675 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, failed to allocate mem @%d..!!\n", 676 + ioc->name,__func__, __LINE__)); 677 return; 678 } 679 ··· 1183 reply = (SasIoUnitControlReply_t *)ioc->sas_mgmt.reply; 1184 if (reply->IOCStatus != MPI_IOCSTATUS_SUCCESS) { 1185 printk(MYIOC_s_INFO_FMT "%s: IOCStatus=0x%X IOCLogInfo=0x%X\n", 1186 + ioc->name, __func__, reply->IOCStatus, reply->IOCLogInfo); 1187 error = -ENXIO; 1188 goto out_unlock; 1189 } ··· 1270 1271 if (!rsp) { 1272 printk(MYIOC_s_ERR_FMT "%s: the smp response space is missing\n", 1273 + ioc->name, __func__); 1274 return -EINVAL; 1275 } 1276 1277 /* do we need to support multiple segments? */ 1278 if (req->bio->bi_vcnt > 1 || rsp->bio->bi_vcnt > 1) { 1279 printk(MYIOC_s_ERR_FMT "%s: multiple segments req %u %u, rsp %u %u\n", 1280 + ioc->name, __func__, req->bio->bi_vcnt, req->data_len, 1281 rsp->bio->bi_vcnt, rsp->data_len); 1282 return -EINVAL; 1283 } ··· 1343 1344 timeleft = wait_for_completion_timeout(&ioc->sas_mgmt.done, 10 * HZ); 1345 if (!timeleft) { 1346 + printk(MYIOC_s_ERR_FMT "%s: smp timeout!\n", ioc->name, __func__); 1347 /* On timeout reset the board */ 1348 mpt_HardResetHandler(ioc, CAN_SLEEP); 1349 ret = -ETIMEDOUT; ··· 1361 rsp->data_len -= smprep->ResponseDataLength; 1362 } else { 1363 printk(MYIOC_s_ERR_FMT "%s: smp passthru reply failed to be returned\n", 1364 + ioc->name, __func__); 1365 ret = -ENXIO; 1366 } 1367 unmap: ··· 2006 if (error) { 2007 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2008 "%s: exit at line=%d\n", ioc->name, 2009 + __func__, __LINE__)); 2010 goto out; 2011 } 2012 mptsas_set_port(ioc, phy_info, port); ··· 2076 if (!rphy) { 2077 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2078 "%s: exit at line=%d\n", ioc->name, 2079 + __func__, __LINE__)); 2080 goto out; 2081 } 2082 ··· 2085 if (error) { 2086 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2087 "%s: exit at line=%d\n", ioc->name, 2088 + __func__, __LINE__)); 2089 sas_rphy_free(rphy); 2090 goto out; 2091 } ··· 2613 (ev->channel << 8) + ev->id)) { 2614 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2615 "%s: exit at line=%d\n", ioc->name, 2616 + __func__, __LINE__)); 2617 break; 2618 } 2619 phy_info = mptsas_find_phyinfo_by_sas_address( ··· 2633 if (!phy_info){ 2634 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2635 "%s: exit at line=%d\n", ioc->name, 2636 + __func__, __LINE__)); 2637 break; 2638 } 2639 if (!phy_info->port_details) { 2640 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2641 "%s: exit at line=%d\n", ioc->name, 2642 + __func__, __LINE__)); 2643 break; 2644 } 2645 rphy = mptsas_get_rphy(phy_info); 2646 if (!rphy) { 2647 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2648 "%s: exit at line=%d\n", ioc->name, 2649 + __func__, __LINE__)); 2650 break; 2651 } 2652 ··· 2654 if (!port) { 2655 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2656 "%s: exit at line=%d\n", ioc->name, 2657 + __func__, __LINE__)); 2658 break; 2659 } 2660 ··· 2665 if (!vtarget) { 2666 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2667 "%s: exit at line=%d\n", ioc->name, 2668 + __func__, __LINE__)); 2669 break; 2670 } 2671 ··· 2720 (ev->channel << 8) + ev->id)) { 2721 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2722 "%s: exit at line=%d\n", ioc->name, 2723 + __func__, __LINE__)); 2724 break; 2725 } 2726 ··· 2732 if (!phy_info || !phy_info->port_details) { 2733 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2734 "%s: exit at line=%d\n", ioc->name, 2735 + __func__, __LINE__)); 2736 break; 2737 } 2738 ··· 2744 if (!vtarget) { 2745 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2746 "%s: exit at line=%d\n", ioc->name, 2747 + __func__, __LINE__)); 2748 break; 2749 } 2750 /* ··· 2767 if (mptsas_get_rphy(phy_info)) { 2768 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2769 "%s: exit at line=%d\n", ioc->name, 2770 + __func__, __LINE__)); 2771 if (ev->channel) printk("%d\n", __LINE__); 2772 break; 2773 } ··· 2776 if (!port) { 2777 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2778 "%s: exit at line=%d\n", ioc->name, 2779 + __func__, __LINE__)); 2780 break; 2781 } 2782 memcpy(&phy_info->attached, &sas_device, ··· 2801 if (!rphy) { 2802 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2803 "%s: exit at line=%d\n", ioc->name, 2804 + __func__, __LINE__)); 2805 break; /* non-fatal: an rphy can be added later */ 2806 } 2807 ··· 2809 if (sas_rphy_add(rphy)) { 2810 dfailprintk(ioc, printk(MYIOC_s_ERR_FMT 2811 "%s: exit at line=%d\n", ioc->name, 2812 + __func__, __LINE__)); 2813 sas_rphy_free(rphy); 2814 break; 2815 }
+2 -2
drivers/message/fusion/mptscsih.c
··· 461 462 if ((mf = mpt_get_msg_frame(ioc->InternalCtx, ioc)) == NULL) { 463 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s: no msg frames!!\n", 464 - ioc->name,__FUNCTION__)); 465 return; 466 } 467 ··· 2187 (ioc->debug_level & MPT_DEBUG_TM )) 2188 printk("%s: ha=%d [%d:%d:0] task_type=0x%02X " 2189 "iocstatus=0x%04X\n\tloginfo=0x%08X response_code=0x%02X " 2190 - "term_cmnds=%d\n", __FUNCTION__, ioc->id, pScsiTmReply->Bus, 2191 pScsiTmReply->TargetID, pScsiTmReq->TaskType, 2192 le16_to_cpu(pScsiTmReply->IOCStatus), 2193 le32_to_cpu(pScsiTmReply->IOCLogInfo),pScsiTmReply->ResponseCode,
··· 461 462 if ((mf = mpt_get_msg_frame(ioc->InternalCtx, ioc)) == NULL) { 463 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s: no msg frames!!\n", 464 + ioc->name,__func__)); 465 return; 466 } 467 ··· 2187 (ioc->debug_level & MPT_DEBUG_TM )) 2188 printk("%s: ha=%d [%d:%d:0] task_type=0x%02X " 2189 "iocstatus=0x%04X\n\tloginfo=0x%08X response_code=0x%02X " 2190 + "term_cmnds=%d\n", __func__, ioc->id, pScsiTmReply->Bus, 2191 pScsiTmReply->TargetID, pScsiTmReq->TaskType, 2192 le16_to_cpu(pScsiTmReply->IOCStatus), 2193 le32_to_cpu(pScsiTmReply->IOCLogInfo),pScsiTmReply->ResponseCode,
+1 -1
drivers/scsi/advansys.c
··· 2278 #define ASC_DBG(lvl, format, arg...) { \ 2279 if (asc_dbglvl >= (lvl)) \ 2280 printk(KERN_DEBUG "%s: %s: " format, DRV_NAME, \ 2281 - __FUNCTION__ , ## arg); \ 2282 } 2283 2284 #define ASC_DBG_PRT_SCSI_HOST(lvl, s) \
··· 2278 #define ASC_DBG(lvl, format, arg...) { \ 2279 if (asc_dbglvl >= (lvl)) \ 2280 printk(KERN_DEBUG "%s: %s: " format, DRV_NAME, \ 2281 + __func__ , ## arg); \ 2282 } 2283 2284 #define ASC_DBG_PRT_SCSI_HOST(lvl, s) \
+6 -6
drivers/scsi/aha152x.c
··· 288 #define DO_LOCK(flags) \ 289 do { \ 290 if(spin_is_locked(&QLOCK)) { \ 291 - DPRINTK(debug_intr, DEBUG_LEAD "(%s:%d) already locked at %s:%d\n", CMDINFO(CURRENT_SC), __FUNCTION__, __LINE__, QLOCKER, QLOCKERL); \ 292 } \ 293 - DPRINTK(debug_locking, DEBUG_LEAD "(%s:%d) locking\n", CMDINFO(CURRENT_SC), __FUNCTION__, __LINE__); \ 294 spin_lock_irqsave(&QLOCK,flags); \ 295 - DPRINTK(debug_locking, DEBUG_LEAD "(%s:%d) locked\n", CMDINFO(CURRENT_SC), __FUNCTION__, __LINE__); \ 296 - QLOCKER=__FUNCTION__; \ 297 QLOCKERL=__LINE__; \ 298 } while(0) 299 300 #define DO_UNLOCK(flags) \ 301 do { \ 302 - DPRINTK(debug_locking, DEBUG_LEAD "(%s:%d) unlocking (locked at %s:%d)\n", CMDINFO(CURRENT_SC), __FUNCTION__, __LINE__, QLOCKER, QLOCKERL); \ 303 spin_unlock_irqrestore(&QLOCK,flags); \ 304 - DPRINTK(debug_locking, DEBUG_LEAD "(%s:%d) unlocked\n", CMDINFO(CURRENT_SC), __FUNCTION__, __LINE__); \ 305 QLOCKER="(not locked)"; \ 306 QLOCKERL=0; \ 307 } while(0)
··· 288 #define DO_LOCK(flags) \ 289 do { \ 290 if(spin_is_locked(&QLOCK)) { \ 291 + DPRINTK(debug_intr, DEBUG_LEAD "(%s:%d) already locked at %s:%d\n", CMDINFO(CURRENT_SC), __func__, __LINE__, QLOCKER, QLOCKERL); \ 292 } \ 293 + DPRINTK(debug_locking, DEBUG_LEAD "(%s:%d) locking\n", CMDINFO(CURRENT_SC), __func__, __LINE__); \ 294 spin_lock_irqsave(&QLOCK,flags); \ 295 + DPRINTK(debug_locking, DEBUG_LEAD "(%s:%d) locked\n", CMDINFO(CURRENT_SC), __func__, __LINE__); \ 296 + QLOCKER=__func__; \ 297 QLOCKERL=__LINE__; \ 298 } while(0) 299 300 #define DO_UNLOCK(flags) \ 301 do { \ 302 + DPRINTK(debug_locking, DEBUG_LEAD "(%s:%d) unlocking (locked at %s:%d)\n", CMDINFO(CURRENT_SC), __func__, __LINE__, QLOCKER, QLOCKERL); \ 303 spin_unlock_irqrestore(&QLOCK,flags); \ 304 + DPRINTK(debug_locking, DEBUG_LEAD "(%s:%d) unlocked\n", CMDINFO(CURRENT_SC), __func__, __LINE__); \ 305 QLOCKER="(not locked)"; \ 306 QLOCKERL=0; \ 307 } while(0)
+2 -2
drivers/scsi/aic94xx/aic94xx.h
··· 39 40 #ifdef ASD_ENTER_EXIT 41 #define ENTER printk(KERN_NOTICE "%s: ENTER %s\n", ASD_DRIVER_NAME, \ 42 - __FUNCTION__) 43 #define EXIT printk(KERN_NOTICE "%s: --EXIT %s\n", ASD_DRIVER_NAME, \ 44 - __FUNCTION__) 45 #else 46 #define ENTER 47 #define EXIT
··· 39 40 #ifdef ASD_ENTER_EXIT 41 #define ENTER printk(KERN_NOTICE "%s: ENTER %s\n", ASD_DRIVER_NAME, \ 42 + __func__) 43 #define EXIT printk(KERN_NOTICE "%s: --EXIT %s\n", ASD_DRIVER_NAME, \ 44 + __func__) 45 #else 46 #define ENTER 47 #define EXIT
+1 -1
drivers/scsi/aic94xx/aic94xx_hwi.c
··· 1359 struct asd_ascb *ascb_list; 1360 1361 if (!phy_mask) { 1362 - asd_printk("%s called with phy_mask of 0!?\n", __FUNCTION__); 1363 return 0; 1364 } 1365
··· 1359 struct asd_ascb *ascb_list; 1360 1361 if (!phy_mask) { 1362 + asd_printk("%s called with phy_mask of 0!?\n", __func__); 1363 return 0; 1364 } 1365
+23 -23
drivers/scsi/aic94xx/aic94xx_scb.c
··· 211 phy->asd_port = port; 212 } 213 ASD_DPRINTK("%s: updating phy_mask 0x%x for phy%d\n", 214 - __FUNCTION__, phy->asd_port->phy_mask, sas_phy->id); 215 asd_update_port_links(asd_ha, phy); 216 spin_unlock_irqrestore(&asd_ha->asd_ports_lock, flags); 217 } ··· 294 struct asd_ascb *cp = asd_ascb_alloc_list(ascb->ha, &num, 295 GFP_ATOMIC); 296 if (!cp) { 297 - asd_printk("%s: out of memory\n", __FUNCTION__); 298 goto out; 299 } 300 ASD_DPRINTK("phy%d: retries:0 performing link reset seq\n", ··· 446 struct domain_device *failed_dev = NULL; 447 448 ASD_DPRINTK("%s: REQ_TASK_ABORT, reason=0x%X\n", 449 - __FUNCTION__, dl->status_block[3]); 450 451 /* 452 * Find the task that caused the abort and abort it first. ··· 474 475 if (!failed_dev) { 476 ASD_DPRINTK("%s: Can't find task (tc=%d) to abort!\n", 477 - __FUNCTION__, tc_abort); 478 goto out; 479 } 480 ··· 502 conn_handle = *((u16*)(&dl->status_block[1])); 503 conn_handle = le16_to_cpu(conn_handle); 504 505 - ASD_DPRINTK("%s: REQ_DEVICE_RESET, reason=0x%X\n", __FUNCTION__, 506 dl->status_block[3]); 507 508 /* Find the last pending task for the device... */ ··· 522 523 if (!last_dev_task) { 524 ASD_DPRINTK("%s: Device reset for idle device %d?\n", 525 - __FUNCTION__, conn_handle); 526 goto out; 527 } 528 ··· 549 goto out; 550 } 551 case SIGNAL_NCQ_ERROR: 552 - ASD_DPRINTK("%s: SIGNAL_NCQ_ERROR\n", __FUNCTION__); 553 goto out; 554 case CLEAR_NCQ_ERROR: 555 - ASD_DPRINTK("%s: CLEAR_NCQ_ERROR\n", __FUNCTION__); 556 goto out; 557 } 558 ··· 560 561 switch (sb_opcode) { 562 case BYTES_DMAED: 563 - ASD_DPRINTK("%s: phy%d: BYTES_DMAED\n", __FUNCTION__, phy_id); 564 asd_bytes_dmaed_tasklet(ascb, dl, edb, phy_id); 565 break; 566 case PRIMITIVE_RECVD: 567 - ASD_DPRINTK("%s: phy%d: PRIMITIVE_RECVD\n", __FUNCTION__, 568 phy_id); 569 asd_primitive_rcvd_tasklet(ascb, dl, phy_id); 570 break; 571 case PHY_EVENT: 572 - ASD_DPRINTK("%s: phy%d: PHY_EVENT\n", __FUNCTION__, phy_id); 573 asd_phy_event_tasklet(ascb, dl); 574 break; 575 case LINK_RESET_ERROR: 576 - ASD_DPRINTK("%s: phy%d: LINK_RESET_ERROR\n", __FUNCTION__, 577 phy_id); 578 asd_link_reset_err_tasklet(ascb, dl, phy_id); 579 break; 580 case TIMER_EVENT: 581 ASD_DPRINTK("%s: phy%d: TIMER_EVENT, lost dw sync\n", 582 - __FUNCTION__, phy_id); 583 asd_turn_led(asd_ha, phy_id, 0); 584 /* the device is gone */ 585 sas_phy_disconnected(sas_phy); ··· 587 sas_ha->notify_port_event(sas_phy, PORTE_TIMER_EVENT); 588 break; 589 default: 590 - ASD_DPRINTK("%s: phy%d: unknown event:0x%x\n", __FUNCTION__, 591 phy_id, sb_opcode); 592 ASD_DPRINTK("edb is 0x%x! dl->opcode is 0x%x\n", 593 edb, dl->opcode); ··· 654 655 if (status != 0) { 656 ASD_DPRINTK("%s: phy%d status block opcode:0x%x\n", 657 - __FUNCTION__, phy_id, status); 658 goto out; 659 } 660 ··· 663 asd_ha->hw_prof.enabled_phys &= ~(1 << phy_id); 664 asd_turn_led(asd_ha, phy_id, 0); 665 asd_control_led(asd_ha, phy_id, 0); 666 - ASD_DPRINTK("%s: disable phy%d\n", __FUNCTION__, phy_id); 667 break; 668 669 case ENABLE_PHY: ··· 673 get_lrate_mode(phy, oob_mode); 674 asd_turn_led(asd_ha, phy_id, 1); 675 ASD_DPRINTK("%s: phy%d, lrate:0x%x, proto:0x%x\n", 676 - __FUNCTION__, phy_id,phy->sas_phy.linkrate, 677 phy->sas_phy.iproto); 678 } else if (oob_status & CURRENT_SPINUP_HOLD) { 679 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); 680 asd_turn_led(asd_ha, phy_id, 1); 681 - ASD_DPRINTK("%s: phy%d, spinup hold\n", __FUNCTION__, 682 phy_id); 683 } else if (oob_status & CURRENT_ERR_MASK) { 684 asd_turn_led(asd_ha, phy_id, 0); 685 ASD_DPRINTK("%s: phy%d: error: oob status:0x%02x\n", 686 - __FUNCTION__, phy_id, oob_status); 687 } else if (oob_status & (CURRENT_HOT_PLUG_CNCT 688 | CURRENT_DEVICE_PRESENT)) { 689 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); 690 asd_turn_led(asd_ha, phy_id, 1); 691 ASD_DPRINTK("%s: phy%d: hot plug or device present\n", 692 - __FUNCTION__, phy_id); 693 } else { 694 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); 695 asd_turn_led(asd_ha, phy_id, 0); 696 ASD_DPRINTK("%s: phy%d: no device present: " 697 "oob_status:0x%x\n", 698 - __FUNCTION__, phy_id, oob_status); 699 } 700 break; 701 case RELEASE_SPINUP_HOLD: 702 case PHY_NO_OP: 703 case EXECUTE_HARD_RESET: 704 - ASD_DPRINTK("%s: phy%d: sub_func:0x%x\n", __FUNCTION__, 705 phy_id, control_phy->sub_func); 706 /* XXX finish */ 707 break; 708 default: 709 - ASD_DPRINTK("%s: phy%d: sub_func:0x%x?\n", __FUNCTION__, 710 phy_id, control_phy->sub_func); 711 break; 712 }
··· 211 phy->asd_port = port; 212 } 213 ASD_DPRINTK("%s: updating phy_mask 0x%x for phy%d\n", 214 + __func__, phy->asd_port->phy_mask, sas_phy->id); 215 asd_update_port_links(asd_ha, phy); 216 spin_unlock_irqrestore(&asd_ha->asd_ports_lock, flags); 217 } ··· 294 struct asd_ascb *cp = asd_ascb_alloc_list(ascb->ha, &num, 295 GFP_ATOMIC); 296 if (!cp) { 297 + asd_printk("%s: out of memory\n", __func__); 298 goto out; 299 } 300 ASD_DPRINTK("phy%d: retries:0 performing link reset seq\n", ··· 446 struct domain_device *failed_dev = NULL; 447 448 ASD_DPRINTK("%s: REQ_TASK_ABORT, reason=0x%X\n", 449 + __func__, dl->status_block[3]); 450 451 /* 452 * Find the task that caused the abort and abort it first. ··· 474 475 if (!failed_dev) { 476 ASD_DPRINTK("%s: Can't find task (tc=%d) to abort!\n", 477 + __func__, tc_abort); 478 goto out; 479 } 480 ··· 502 conn_handle = *((u16*)(&dl->status_block[1])); 503 conn_handle = le16_to_cpu(conn_handle); 504 505 + ASD_DPRINTK("%s: REQ_DEVICE_RESET, reason=0x%X\n", __func__, 506 dl->status_block[3]); 507 508 /* Find the last pending task for the device... */ ··· 522 523 if (!last_dev_task) { 524 ASD_DPRINTK("%s: Device reset for idle device %d?\n", 525 + __func__, conn_handle); 526 goto out; 527 } 528 ··· 549 goto out; 550 } 551 case SIGNAL_NCQ_ERROR: 552 + ASD_DPRINTK("%s: SIGNAL_NCQ_ERROR\n", __func__); 553 goto out; 554 case CLEAR_NCQ_ERROR: 555 + ASD_DPRINTK("%s: CLEAR_NCQ_ERROR\n", __func__); 556 goto out; 557 } 558 ··· 560 561 switch (sb_opcode) { 562 case BYTES_DMAED: 563 + ASD_DPRINTK("%s: phy%d: BYTES_DMAED\n", __func__, phy_id); 564 asd_bytes_dmaed_tasklet(ascb, dl, edb, phy_id); 565 break; 566 case PRIMITIVE_RECVD: 567 + ASD_DPRINTK("%s: phy%d: PRIMITIVE_RECVD\n", __func__, 568 phy_id); 569 asd_primitive_rcvd_tasklet(ascb, dl, phy_id); 570 break; 571 case PHY_EVENT: 572 + ASD_DPRINTK("%s: phy%d: PHY_EVENT\n", __func__, phy_id); 573 asd_phy_event_tasklet(ascb, dl); 574 break; 575 case LINK_RESET_ERROR: 576 + ASD_DPRINTK("%s: phy%d: LINK_RESET_ERROR\n", __func__, 577 phy_id); 578 asd_link_reset_err_tasklet(ascb, dl, phy_id); 579 break; 580 case TIMER_EVENT: 581 ASD_DPRINTK("%s: phy%d: TIMER_EVENT, lost dw sync\n", 582 + __func__, phy_id); 583 asd_turn_led(asd_ha, phy_id, 0); 584 /* the device is gone */ 585 sas_phy_disconnected(sas_phy); ··· 587 sas_ha->notify_port_event(sas_phy, PORTE_TIMER_EVENT); 588 break; 589 default: 590 + ASD_DPRINTK("%s: phy%d: unknown event:0x%x\n", __func__, 591 phy_id, sb_opcode); 592 ASD_DPRINTK("edb is 0x%x! dl->opcode is 0x%x\n", 593 edb, dl->opcode); ··· 654 655 if (status != 0) { 656 ASD_DPRINTK("%s: phy%d status block opcode:0x%x\n", 657 + __func__, phy_id, status); 658 goto out; 659 } 660 ··· 663 asd_ha->hw_prof.enabled_phys &= ~(1 << phy_id); 664 asd_turn_led(asd_ha, phy_id, 0); 665 asd_control_led(asd_ha, phy_id, 0); 666 + ASD_DPRINTK("%s: disable phy%d\n", __func__, phy_id); 667 break; 668 669 case ENABLE_PHY: ··· 673 get_lrate_mode(phy, oob_mode); 674 asd_turn_led(asd_ha, phy_id, 1); 675 ASD_DPRINTK("%s: phy%d, lrate:0x%x, proto:0x%x\n", 676 + __func__, phy_id,phy->sas_phy.linkrate, 677 phy->sas_phy.iproto); 678 } else if (oob_status & CURRENT_SPINUP_HOLD) { 679 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); 680 asd_turn_led(asd_ha, phy_id, 1); 681 + ASD_DPRINTK("%s: phy%d, spinup hold\n", __func__, 682 phy_id); 683 } else if (oob_status & CURRENT_ERR_MASK) { 684 asd_turn_led(asd_ha, phy_id, 0); 685 ASD_DPRINTK("%s: phy%d: error: oob status:0x%02x\n", 686 + __func__, phy_id, oob_status); 687 } else if (oob_status & (CURRENT_HOT_PLUG_CNCT 688 | CURRENT_DEVICE_PRESENT)) { 689 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); 690 asd_turn_led(asd_ha, phy_id, 1); 691 ASD_DPRINTK("%s: phy%d: hot plug or device present\n", 692 + __func__, phy_id); 693 } else { 694 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); 695 asd_turn_led(asd_ha, phy_id, 0); 696 ASD_DPRINTK("%s: phy%d: no device present: " 697 "oob_status:0x%x\n", 698 + __func__, phy_id, oob_status); 699 } 700 break; 701 case RELEASE_SPINUP_HOLD: 702 case PHY_NO_OP: 703 case EXECUTE_HARD_RESET: 704 + ASD_DPRINTK("%s: phy%d: sub_func:0x%x\n", __func__, 705 phy_id, control_phy->sub_func); 706 /* XXX finish */ 707 break; 708 default: 709 + ASD_DPRINTK("%s: phy%d: sub_func:0x%x?\n", __func__, 710 phy_id, control_phy->sub_func); 711 break; 712 }
+1 -1
drivers/scsi/aic94xx/aic94xx_task.c
··· 320 case TC_RESUME: 321 case TC_PARTIAL_SG_LIST: 322 default: 323 - ASD_DPRINTK("%s: dl opcode: 0x%x?\n", __FUNCTION__, opcode); 324 break; 325 } 326
··· 320 case TC_RESUME: 321 case TC_PARTIAL_SG_LIST: 322 default: 323 + ASD_DPRINTK("%s: dl opcode: 0x%x?\n", __func__, opcode); 324 break; 325 } 326
+9 -9
drivers/scsi/aic94xx/aic94xx_tmf.c
··· 75 struct done_list_struct *dl) 76 { 77 struct tasklet_completion_status *tcs = ascb->uldd_task; 78 - ASD_DPRINTK("%s: here\n", __FUNCTION__); 79 if (!del_timer(&ascb->timer)) { 80 - ASD_DPRINTK("%s: couldn't delete timer\n", __FUNCTION__); 81 return; 82 } 83 - ASD_DPRINTK("%s: opcode: 0x%x\n", __FUNCTION__, dl->opcode); 84 tcs->dl_opcode = dl->opcode; 85 complete(ascb->completion); 86 asd_ascb_free(ascb); ··· 91 struct asd_ascb *ascb = (void *)data; 92 struct tasklet_completion_status *tcs = ascb->uldd_task; 93 94 - ASD_DPRINTK("%s: here\n", __FUNCTION__); 95 tcs->dl_opcode = TMF_RESP_FUNC_FAILED; 96 complete(ascb->completion); 97 } ··· 103 DECLARE_COMPLETION_ONSTACK(completion); \ 104 DECLARE_TCS(tcs); \ 105 \ 106 - ASD_DPRINTK("%s: PRE\n", __FUNCTION__); \ 107 res = 1; \ 108 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL); \ 109 if (!ascb) \ ··· 115 scb->header.opcode = CLEAR_NEXUS 116 117 #define CLEAR_NEXUS_POST \ 118 - ASD_DPRINTK("%s: POST\n", __FUNCTION__); \ 119 res = asd_enqueue_internal(ascb, asd_clear_nexus_tasklet_complete, \ 120 asd_clear_nexus_timedout); \ 121 if (res) \ 122 goto out_err; \ 123 - ASD_DPRINTK("%s: clear nexus posted, waiting...\n", __FUNCTION__); \ 124 wait_for_completion(&completion); \ 125 res = tcs.dl_opcode; \ 126 if (res == TC_NO_ERROR) \ ··· 417 if (task->task_state_flags & SAS_TASK_STATE_DONE) { 418 spin_unlock_irqrestore(&task->task_state_lock, flags); 419 res = TMF_RESP_FUNC_COMPLETE; 420 - ASD_DPRINTK("%s: task 0x%p done\n", __FUNCTION__, task); 421 goto out_done; 422 } 423 spin_unlock_irqrestore(&task->task_state_lock, flags); ··· 481 if (task->task_state_flags & SAS_TASK_STATE_DONE) { 482 spin_unlock_irqrestore(&task->task_state_lock, flags); 483 res = TMF_RESP_FUNC_COMPLETE; 484 - ASD_DPRINTK("%s: task 0x%p done\n", __FUNCTION__, task); 485 goto out_done; 486 } 487 spin_unlock_irqrestore(&task->task_state_lock, flags);
··· 75 struct done_list_struct *dl) 76 { 77 struct tasklet_completion_status *tcs = ascb->uldd_task; 78 + ASD_DPRINTK("%s: here\n", __func__); 79 if (!del_timer(&ascb->timer)) { 80 + ASD_DPRINTK("%s: couldn't delete timer\n", __func__); 81 return; 82 } 83 + ASD_DPRINTK("%s: opcode: 0x%x\n", __func__, dl->opcode); 84 tcs->dl_opcode = dl->opcode; 85 complete(ascb->completion); 86 asd_ascb_free(ascb); ··· 91 struct asd_ascb *ascb = (void *)data; 92 struct tasklet_completion_status *tcs = ascb->uldd_task; 93 94 + ASD_DPRINTK("%s: here\n", __func__); 95 tcs->dl_opcode = TMF_RESP_FUNC_FAILED; 96 complete(ascb->completion); 97 } ··· 103 DECLARE_COMPLETION_ONSTACK(completion); \ 104 DECLARE_TCS(tcs); \ 105 \ 106 + ASD_DPRINTK("%s: PRE\n", __func__); \ 107 res = 1; \ 108 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL); \ 109 if (!ascb) \ ··· 115 scb->header.opcode = CLEAR_NEXUS 116 117 #define CLEAR_NEXUS_POST \ 118 + ASD_DPRINTK("%s: POST\n", __func__); \ 119 res = asd_enqueue_internal(ascb, asd_clear_nexus_tasklet_complete, \ 120 asd_clear_nexus_timedout); \ 121 if (res) \ 122 goto out_err; \ 123 + ASD_DPRINTK("%s: clear nexus posted, waiting...\n", __func__); \ 124 wait_for_completion(&completion); \ 125 res = tcs.dl_opcode; \ 126 if (res == TC_NO_ERROR) \ ··· 417 if (task->task_state_flags & SAS_TASK_STATE_DONE) { 418 spin_unlock_irqrestore(&task->task_state_lock, flags); 419 res = TMF_RESP_FUNC_COMPLETE; 420 + ASD_DPRINTK("%s: task 0x%p done\n", __func__, task); 421 goto out_done; 422 } 423 spin_unlock_irqrestore(&task->task_state_lock, flags); ··· 481 if (task->task_state_flags & SAS_TASK_STATE_DONE) { 482 spin_unlock_irqrestore(&task->task_state_lock, flags); 483 res = TMF_RESP_FUNC_COMPLETE; 484 + ASD_DPRINTK("%s: task 0x%p done\n", __func__, task); 485 goto out_done; 486 } 487 spin_unlock_irqrestore(&task->task_state_lock, flags);
+2 -2
drivers/scsi/arm/fas216.c
··· 240 panic("scsi memory space corrupted in %s", func); 241 } 242 } 243 - #define fas216_checkmagic(info) __fas216_checkmagic((info), __FUNCTION__) 244 #else 245 #define fas216_checkmagic(info) 246 #endif ··· 2658 fas216_checkmagic(info); 2659 2660 printk("scsi%d.%c: %s: resetting host\n", 2661 - info->host->host_no, '0' + SCpnt->device->id, __FUNCTION__); 2662 2663 /* 2664 * Reset the SCSI chip.
··· 240 panic("scsi memory space corrupted in %s", func); 241 } 242 } 243 + #define fas216_checkmagic(info) __fas216_checkmagic((info), __func__) 244 #else 245 #define fas216_checkmagic(info) 246 #endif ··· 2658 fas216_checkmagic(info); 2659 2660 printk("scsi%d.%c: %s: resetting host\n", 2661 + info->host->host_no, '0' + SCpnt->device->id, __func__); 2662 2663 /* 2664 * Reset the SCSI chip.
+3 -3
drivers/scsi/device_handler/scsi_dh_alua.c
··· 97 98 if (!rq) { 99 sdev_printk(KERN_INFO, sdev, 100 - "%s: blk_get_request failed\n", __FUNCTION__); 101 return NULL; 102 } 103 104 if (buflen && blk_rq_map_kern(q, rq, buffer, buflen, GFP_NOIO)) { 105 blk_put_request(rq); 106 sdev_printk(KERN_INFO, sdev, 107 - "%s: blk_rq_map_kern failed\n", __FUNCTION__); 108 return NULL; 109 } 110 ··· 553 /* Resubmit with the correct length */ 554 if (realloc_buffer(h, len)) { 555 sdev_printk(KERN_WARNING, sdev, 556 - "%s: kmalloc buffer failed\n",__FUNCTION__); 557 /* Temporary failure, bypass */ 558 return SCSI_DH_DEV_TEMP_BUSY; 559 }
··· 97 98 if (!rq) { 99 sdev_printk(KERN_INFO, sdev, 100 + "%s: blk_get_request failed\n", __func__); 101 return NULL; 102 } 103 104 if (buflen && blk_rq_map_kern(q, rq, buffer, buflen, GFP_NOIO)) { 105 blk_put_request(rq); 106 sdev_printk(KERN_INFO, sdev, 107 + "%s: blk_rq_map_kern failed\n", __func__); 108 return NULL; 109 } 110 ··· 553 /* Resubmit with the correct length */ 554 if (realloc_buffer(h, len)) { 555 sdev_printk(KERN_WARNING, sdev, 556 + "%s: kmalloc buffer failed\n",__func__); 557 /* Temporary failure, bypass */ 558 return SCSI_DH_DEV_TEMP_BUSY; 559 }
+2 -2
drivers/scsi/ibmvscsi/ibmvfc.h
··· 704 dev_err((vhost)->dev, ##__VA_ARGS__); \ 705 } while (0) 706 707 - #define ENTER DBG_CMD(printk(KERN_INFO IBMVFC_NAME": Entering %s\n", __FUNCTION__)) 708 - #define LEAVE DBG_CMD(printk(KERN_INFO IBMVFC_NAME": Leaving %s\n", __FUNCTION__)) 709 710 #ifdef CONFIG_SCSI_IBMVFC_TRACE 711 #define ibmvfc_create_trace_file(kobj, attr) sysfs_create_bin_file(kobj, attr)
··· 704 dev_err((vhost)->dev, ##__VA_ARGS__); \ 705 } while (0) 706 707 + #define ENTER DBG_CMD(printk(KERN_INFO IBMVFC_NAME": Entering %s\n", __func__)) 708 + #define LEAVE DBG_CMD(printk(KERN_INFO IBMVFC_NAME": Leaving %s\n", __func__)) 709 710 #ifdef CONFIG_SCSI_IBMVFC_TRACE 711 #define ibmvfc_create_trace_file(kobj, attr) sysfs_create_bin_file(kobj, attr)
+1 -1
drivers/scsi/ibmvscsi/ibmvstgt.c
··· 55 /* tmp - will replace with SCSI logging stuff */ 56 #define eprintk(fmt, args...) \ 57 do { \ 58 - printk("%s(%d) " fmt, __FUNCTION__, __LINE__, ##args); \ 59 } while (0) 60 /* #define dprintk eprintk */ 61 #define dprintk(fmt, args...)
··· 55 /* tmp - will replace with SCSI logging stuff */ 56 #define eprintk(fmt, args...) \ 57 do { \ 58 + printk("%s(%d) " fmt, __func__, __LINE__, ##args); \ 59 } while (0) 60 /* #define dprintk eprintk */ 61 #define dprintk(fmt, args...)
+1 -1
drivers/scsi/imm.c
··· 163 164 #if IMM_DEBUG > 0 165 #define imm_fail(x,y) printk("imm: imm_fail(%i) from %s at line %d\n",\ 166 - y, __FUNCTION__, __LINE__); imm_fail_func(x,y); 167 static inline void 168 imm_fail_func(imm_struct *dev, int error_code) 169 #else
··· 163 164 #if IMM_DEBUG > 0 165 #define imm_fail(x,y) printk("imm: imm_fail(%i) from %s at line %d\n",\ 166 + y, __func__, __LINE__); imm_fail_func(x,y); 167 static inline void 168 imm_fail_func(imm_struct *dev, int error_code) 169 #else
+3 -3
drivers/scsi/ipr.h
··· 1403 } 1404 1405 #define ipr_trace ipr_dbg("%s: %s: Line: %d\n",\ 1406 - __FILE__, __FUNCTION__, __LINE__) 1407 1408 - #define ENTER IPR_DBG_CMD(printk(KERN_INFO IPR_NAME": Entering %s\n", __FUNCTION__)) 1409 - #define LEAVE IPR_DBG_CMD(printk(KERN_INFO IPR_NAME": Leaving %s\n", __FUNCTION__)) 1410 1411 #define ipr_err_separator \ 1412 ipr_err("----------------------------------------------------------\n")
··· 1403 } 1404 1405 #define ipr_trace ipr_dbg("%s: %s: Line: %d\n",\ 1406 + __FILE__, __func__, __LINE__) 1407 1408 + #define ENTER IPR_DBG_CMD(printk(KERN_INFO IPR_NAME": Entering %s\n", __func__)) 1409 + #define LEAVE IPR_DBG_CMD(printk(KERN_INFO IPR_NAME": Leaving %s\n", __func__)) 1410 1411 #define ipr_err_separator \ 1412 ipr_err("----------------------------------------------------------\n")
+8 -8
drivers/scsi/libsas/sas_ata.c
··· 74 case SAS_OPEN_TO: 75 case SAS_OPEN_REJECT: 76 SAS_DPRINTK("%s: Saw error %d. What to do?\n", 77 - __FUNCTION__, ts->stat); 78 return AC_ERR_OTHER; 79 80 case SAS_ABORTED_TASK: ··· 115 } else if (stat->stat != SAM_STAT_GOOD) { 116 ac = sas_to_ata_err(stat); 117 if (ac) { 118 - SAS_DPRINTK("%s: SAS error %x\n", __FUNCTION__, 119 stat->stat); 120 /* We saw a SAS error. Send a vague error. */ 121 qc->err_mask = ac; ··· 244 res = i->dft->lldd_I_T_nexus_reset(dev); 245 246 if (res != TMF_RESP_FUNC_COMPLETE) 247 - SAS_DPRINTK("%s: Unable to reset I T nexus?\n", __FUNCTION__); 248 249 switch (dev->sata_dev.command_set) { 250 case ATA_COMMAND_SET: 251 - SAS_DPRINTK("%s: Found ATA device.\n", __FUNCTION__); 252 ap->link.device[0].class = ATA_DEV_ATA; 253 break; 254 case ATAPI_COMMAND_SET: 255 - SAS_DPRINTK("%s: Found ATAPI device.\n", __FUNCTION__); 256 ap->link.device[0].class = ATA_DEV_ATAPI; 257 break; 258 default: 259 SAS_DPRINTK("%s: Unknown SATA command set: %d.\n", 260 - __FUNCTION__, 261 dev->sata_dev.command_set); 262 ap->link.device[0].class = ATA_DEV_UNKNOWN; 263 break; ··· 299 { 300 struct domain_device *dev = ap->private_data; 301 302 - SAS_DPRINTK("STUB %s\n", __FUNCTION__); 303 switch (sc_reg_in) { 304 case SCR_STATUS: 305 dev->sata_dev.sstatus = val; ··· 324 { 325 struct domain_device *dev = ap->private_data; 326 327 - SAS_DPRINTK("STUB %s\n", __FUNCTION__); 328 switch (sc_reg_in) { 329 case SCR_STATUS: 330 *val = dev->sata_dev.sstatus;
··· 74 case SAS_OPEN_TO: 75 case SAS_OPEN_REJECT: 76 SAS_DPRINTK("%s: Saw error %d. What to do?\n", 77 + __func__, ts->stat); 78 return AC_ERR_OTHER; 79 80 case SAS_ABORTED_TASK: ··· 115 } else if (stat->stat != SAM_STAT_GOOD) { 116 ac = sas_to_ata_err(stat); 117 if (ac) { 118 + SAS_DPRINTK("%s: SAS error %x\n", __func__, 119 stat->stat); 120 /* We saw a SAS error. Send a vague error. */ 121 qc->err_mask = ac; ··· 244 res = i->dft->lldd_I_T_nexus_reset(dev); 245 246 if (res != TMF_RESP_FUNC_COMPLETE) 247 + SAS_DPRINTK("%s: Unable to reset I T nexus?\n", __func__); 248 249 switch (dev->sata_dev.command_set) { 250 case ATA_COMMAND_SET: 251 + SAS_DPRINTK("%s: Found ATA device.\n", __func__); 252 ap->link.device[0].class = ATA_DEV_ATA; 253 break; 254 case ATAPI_COMMAND_SET: 255 + SAS_DPRINTK("%s: Found ATAPI device.\n", __func__); 256 ap->link.device[0].class = ATA_DEV_ATAPI; 257 break; 258 default: 259 SAS_DPRINTK("%s: Unknown SATA command set: %d.\n", 260 + __func__, 261 dev->sata_dev.command_set); 262 ap->link.device[0].class = ATA_DEV_UNKNOWN; 263 break; ··· 299 { 300 struct domain_device *dev = ap->private_data; 301 302 + SAS_DPRINTK("STUB %s\n", __func__); 303 switch (sc_reg_in) { 304 case SCR_STATUS: 305 dev->sata_dev.sstatus = val; ··· 324 { 325 struct domain_device *dev = ap->private_data; 326 327 + SAS_DPRINTK("STUB %s\n", __func__); 328 switch (sc_reg_in) { 329 case SCR_STATUS: 330 *val = dev->sata_dev.sstatus;
+6 -6
drivers/scsi/libsas/sas_expander.c
··· 121 break; 122 } else { 123 SAS_DPRINTK("%s: task to dev %016llx response: 0x%x " 124 - "status 0x%x\n", __FUNCTION__, 125 SAS_ADDR(dev->sas_addr), 126 task->task_status.resp, 127 task->task_status.stat); ··· 1279 goto out; 1280 } else if (res != SMP_RESP_FUNC_ACC) { 1281 SAS_DPRINTK("%s: dev %016llx phy 0x%x index 0x%x " 1282 - "result 0x%x\n", __FUNCTION__, 1283 SAS_ADDR(dev->sas_addr), phy_id, i, res); 1284 goto out; 1285 } ··· 1901 1902 if (!rsp) { 1903 printk("%s: space for a smp response is missing\n", 1904 - __FUNCTION__); 1905 return -EINVAL; 1906 } 1907 ··· 1914 if (type != SAS_EDGE_EXPANDER_DEVICE && 1915 type != SAS_FANOUT_EXPANDER_DEVICE) { 1916 printk("%s: can we send a smp request to a device?\n", 1917 - __FUNCTION__); 1918 return -EINVAL; 1919 } 1920 1921 dev = sas_find_dev_by_rphy(rphy); 1922 if (!dev) { 1923 - printk("%s: fail to find a domain_device?\n", __FUNCTION__); 1924 return -EINVAL; 1925 } 1926 1927 /* do we need to support multiple segments? */ 1928 if (req->bio->bi_vcnt > 1 || rsp->bio->bi_vcnt > 1) { 1929 printk("%s: multiple segments req %u %u, rsp %u %u\n", 1930 - __FUNCTION__, req->bio->bi_vcnt, req->data_len, 1931 rsp->bio->bi_vcnt, rsp->data_len); 1932 return -EINVAL; 1933 }
··· 121 break; 122 } else { 123 SAS_DPRINTK("%s: task to dev %016llx response: 0x%x " 124 + "status 0x%x\n", __func__, 125 SAS_ADDR(dev->sas_addr), 126 task->task_status.resp, 127 task->task_status.stat); ··· 1279 goto out; 1280 } else if (res != SMP_RESP_FUNC_ACC) { 1281 SAS_DPRINTK("%s: dev %016llx phy 0x%x index 0x%x " 1282 + "result 0x%x\n", __func__, 1283 SAS_ADDR(dev->sas_addr), phy_id, i, res); 1284 goto out; 1285 } ··· 1901 1902 if (!rsp) { 1903 printk("%s: space for a smp response is missing\n", 1904 + __func__); 1905 return -EINVAL; 1906 } 1907 ··· 1914 if (type != SAS_EDGE_EXPANDER_DEVICE && 1915 type != SAS_FANOUT_EXPANDER_DEVICE) { 1916 printk("%s: can we send a smp request to a device?\n", 1917 + __func__); 1918 return -EINVAL; 1919 } 1920 1921 dev = sas_find_dev_by_rphy(rphy); 1922 if (!dev) { 1923 + printk("%s: fail to find a domain_device?\n", __func__); 1924 return -EINVAL; 1925 } 1926 1927 /* do we need to support multiple segments? */ 1928 if (req->bio->bi_vcnt > 1 || rsp->bio->bi_vcnt > 1) { 1929 printk("%s: multiple segments req %u %u, rsp %u %u\n", 1930 + __func__, req->bio->bi_vcnt, req->data_len, 1931 rsp->bio->bi_vcnt, rsp->data_len); 1932 return -EINVAL; 1933 }
+2 -2
drivers/scsi/libsas/sas_port.c
··· 50 sas_deform_port(phy); 51 else { 52 SAS_DPRINTK("%s: phy%d belongs to port%d already(%d)!\n", 53 - __FUNCTION__, phy->id, phy->port->id, 54 phy->port->num_phys); 55 return; 56 } ··· 78 79 if (i >= sas_ha->num_phys) { 80 printk(KERN_NOTICE "%s: couldn't find a free port, bug?\n", 81 - __FUNCTION__); 82 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); 83 return; 84 }
··· 50 sas_deform_port(phy); 51 else { 52 SAS_DPRINTK("%s: phy%d belongs to port%d already(%d)!\n", 53 + __func__, phy->id, phy->port->id, 54 phy->port->num_phys); 55 return; 56 } ··· 78 79 if (i >= sas_ha->num_phys) { 80 printk(KERN_NOTICE "%s: couldn't find a free port, bug?\n", 81 + __func__); 82 spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); 83 return; 84 }
+15 -15
drivers/scsi/libsas/sas_scsi_host.c
··· 343 flags); 344 SAS_DPRINTK("%s: task 0x%p aborted from " 345 "task_queue\n", 346 - __FUNCTION__, task); 347 return TASK_IS_ABORTED; 348 } 349 } ··· 351 } 352 353 for (i = 0; i < 5; i++) { 354 - SAS_DPRINTK("%s: aborting task 0x%p\n", __FUNCTION__, task); 355 res = si->dft->lldd_abort_task(task); 356 357 spin_lock_irqsave(&task->task_state_lock, flags); 358 if (task->task_state_flags & SAS_TASK_STATE_DONE) { 359 spin_unlock_irqrestore(&task->task_state_lock, flags); 360 - SAS_DPRINTK("%s: task 0x%p is done\n", __FUNCTION__, 361 task); 362 return TASK_IS_DONE; 363 } ··· 365 366 if (res == TMF_RESP_FUNC_COMPLETE) { 367 SAS_DPRINTK("%s: task 0x%p is aborted\n", 368 - __FUNCTION__, task); 369 return TASK_IS_ABORTED; 370 } else if (si->dft->lldd_query_task) { 371 SAS_DPRINTK("%s: querying task 0x%p\n", 372 - __FUNCTION__, task); 373 res = si->dft->lldd_query_task(task); 374 switch (res) { 375 case TMF_RESP_FUNC_SUCC: 376 SAS_DPRINTK("%s: task 0x%p at LU\n", 377 - __FUNCTION__, task); 378 return TASK_IS_AT_LU; 379 case TMF_RESP_FUNC_COMPLETE: 380 SAS_DPRINTK("%s: task 0x%p not at LU\n", 381 - __FUNCTION__, task); 382 return TASK_IS_NOT_AT_LU; 383 case TMF_RESP_FUNC_FAILED: 384 SAS_DPRINTK("%s: task 0x%p failed to abort\n", 385 - __FUNCTION__, task); 386 return TASK_ABORT_FAILED; 387 } 388 ··· 545 546 if (need_reset) { 547 SAS_DPRINTK("%s: task 0x%p requests reset\n", 548 - __FUNCTION__, task); 549 goto reset; 550 } 551 ··· 556 557 switch (res) { 558 case TASK_IS_DONE: 559 - SAS_DPRINTK("%s: task 0x%p is done\n", __FUNCTION__, 560 task); 561 sas_eh_finish_cmd(cmd); 562 continue; 563 case TASK_IS_ABORTED: 564 SAS_DPRINTK("%s: task 0x%p is aborted\n", 565 - __FUNCTION__, task); 566 sas_eh_finish_cmd(cmd); 567 continue; 568 case TASK_IS_AT_LU: ··· 633 } 634 return list_empty(work_q); 635 clear_q: 636 - SAS_DPRINTK("--- Exit %s -- clear_q\n", __FUNCTION__); 637 list_for_each_entry_safe(cmd, n, work_q, eh_entry) 638 sas_eh_finish_cmd(cmd); 639 ··· 650 list_splice_init(&shost->eh_cmd_q, &eh_work_q); 651 spin_unlock_irqrestore(shost->host_lock, flags); 652 653 - SAS_DPRINTK("Enter %s\n", __FUNCTION__); 654 /* 655 * Deal with commands that still have SAS tasks (i.e. they didn't 656 * complete via the normal sas_task completion mechanism) ··· 669 670 out: 671 scsi_eh_flush_done_q(&ha->eh_done_q); 672 - SAS_DPRINTK("--- Exit %s\n", __FUNCTION__); 673 return; 674 } 675 ··· 990 if (task->task_state_flags & SAS_TASK_STATE_ABORTED || 991 task->task_state_flags & SAS_TASK_STATE_DONE) { 992 spin_unlock_irqrestore(&task->task_state_lock, flags); 993 - SAS_DPRINTK("%s: Task %p already finished.\n", __FUNCTION__, 994 task); 995 return 0; 996 }
··· 343 flags); 344 SAS_DPRINTK("%s: task 0x%p aborted from " 345 "task_queue\n", 346 + __func__, task); 347 return TASK_IS_ABORTED; 348 } 349 } ··· 351 } 352 353 for (i = 0; i < 5; i++) { 354 + SAS_DPRINTK("%s: aborting task 0x%p\n", __func__, task); 355 res = si->dft->lldd_abort_task(task); 356 357 spin_lock_irqsave(&task->task_state_lock, flags); 358 if (task->task_state_flags & SAS_TASK_STATE_DONE) { 359 spin_unlock_irqrestore(&task->task_state_lock, flags); 360 + SAS_DPRINTK("%s: task 0x%p is done\n", __func__, 361 task); 362 return TASK_IS_DONE; 363 } ··· 365 366 if (res == TMF_RESP_FUNC_COMPLETE) { 367 SAS_DPRINTK("%s: task 0x%p is aborted\n", 368 + __func__, task); 369 return TASK_IS_ABORTED; 370 } else if (si->dft->lldd_query_task) { 371 SAS_DPRINTK("%s: querying task 0x%p\n", 372 + __func__, task); 373 res = si->dft->lldd_query_task(task); 374 switch (res) { 375 case TMF_RESP_FUNC_SUCC: 376 SAS_DPRINTK("%s: task 0x%p at LU\n", 377 + __func__, task); 378 return TASK_IS_AT_LU; 379 case TMF_RESP_FUNC_COMPLETE: 380 SAS_DPRINTK("%s: task 0x%p not at LU\n", 381 + __func__, task); 382 return TASK_IS_NOT_AT_LU; 383 case TMF_RESP_FUNC_FAILED: 384 SAS_DPRINTK("%s: task 0x%p failed to abort\n", 385 + __func__, task); 386 return TASK_ABORT_FAILED; 387 } 388 ··· 545 546 if (need_reset) { 547 SAS_DPRINTK("%s: task 0x%p requests reset\n", 548 + __func__, task); 549 goto reset; 550 } 551 ··· 556 557 switch (res) { 558 case TASK_IS_DONE: 559 + SAS_DPRINTK("%s: task 0x%p is done\n", __func__, 560 task); 561 sas_eh_finish_cmd(cmd); 562 continue; 563 case TASK_IS_ABORTED: 564 SAS_DPRINTK("%s: task 0x%p is aborted\n", 565 + __func__, task); 566 sas_eh_finish_cmd(cmd); 567 continue; 568 case TASK_IS_AT_LU: ··· 633 } 634 return list_empty(work_q); 635 clear_q: 636 + SAS_DPRINTK("--- Exit %s -- clear_q\n", __func__); 637 list_for_each_entry_safe(cmd, n, work_q, eh_entry) 638 sas_eh_finish_cmd(cmd); 639 ··· 650 list_splice_init(&shost->eh_cmd_q, &eh_work_q); 651 spin_unlock_irqrestore(shost->host_lock, flags); 652 653 + SAS_DPRINTK("Enter %s\n", __func__); 654 /* 655 * Deal with commands that still have SAS tasks (i.e. they didn't 656 * complete via the normal sas_task completion mechanism) ··· 669 670 out: 671 scsi_eh_flush_done_q(&ha->eh_done_q); 672 + SAS_DPRINTK("--- Exit %s\n", __func__); 673 return; 674 } 675 ··· 990 if (task->task_state_flags & SAS_TASK_STATE_ABORTED || 991 task->task_state_flags & SAS_TASK_STATE_DONE) { 992 spin_unlock_irqrestore(&task->task_state_lock, flags); 993 + SAS_DPRINTK("%s: Task %p already finished.\n", __func__, 994 task); 995 return 0; 996 }
+1 -1
drivers/scsi/libsrp.c
··· 39 /* tmp - will replace with SCSI logging stuff */ 40 #define eprintk(fmt, args...) \ 41 do { \ 42 - printk("%s(%d) " fmt, __FUNCTION__, __LINE__, ##args); \ 43 } while (0) 44 /* #define dprintk eprintk */ 45 #define dprintk(fmt, args...)
··· 39 /* tmp - will replace with SCSI logging stuff */ 40 #define eprintk(fmt, args...) \ 41 do { \ 42 + printk("%s(%d) " fmt, __func__, __LINE__, ##args); \ 43 } while (0) 44 /* #define dprintk eprintk */ 45 #define dprintk(fmt, args...)
+2 -2
drivers/scsi/lpfc/lpfc_init.c
··· 2083 if (iocbq_entry == NULL) { 2084 printk(KERN_ERR "%s: only allocated %d iocbs of " 2085 "expected %d count. Unloading driver.\n", 2086 - __FUNCTION__, i, LPFC_IOCB_LIST_CNT); 2087 error = -ENOMEM; 2088 goto out_free_iocbq; 2089 } ··· 2093 kfree (iocbq_entry); 2094 printk(KERN_ERR "%s: failed to allocate IOTAG. " 2095 "Unloading driver.\n", 2096 - __FUNCTION__); 2097 error = -ENOMEM; 2098 goto out_free_iocbq; 2099 }
··· 2083 if (iocbq_entry == NULL) { 2084 printk(KERN_ERR "%s: only allocated %d iocbs of " 2085 "expected %d count. Unloading driver.\n", 2086 + __func__, i, LPFC_IOCB_LIST_CNT); 2087 error = -ENOMEM; 2088 goto out_free_iocbq; 2089 } ··· 2093 kfree (iocbq_entry); 2094 printk(KERN_ERR "%s: failed to allocate IOTAG. " 2095 "Unloading driver.\n", 2096 + __func__); 2097 error = -ENOMEM; 2098 goto out_free_iocbq; 2099 }
+1 -1
drivers/scsi/lpfc/lpfc_scsi.c
··· 341 if (lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt) { 342 printk(KERN_ERR "%s: Too many sg segments from " 343 "dma_map_sg. Config %d, seg_cnt %d", 344 - __FUNCTION__, phba->cfg_sg_seg_cnt, 345 lpfc_cmd->seg_cnt); 346 scsi_dma_unmap(scsi_cmnd); 347 return 1;
··· 341 if (lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt) { 342 printk(KERN_ERR "%s: Too many sg segments from " 343 "dma_map_sg. Config %d, seg_cnt %d", 344 + __func__, phba->cfg_sg_seg_cnt, 345 lpfc_cmd->seg_cnt); 346 scsi_dma_unmap(scsi_cmnd); 347 return 1;
+3 -3
drivers/scsi/lpfc/lpfc_sli.c
··· 219 case CMD_IOCB_LOGENTRY_CN: 220 case CMD_IOCB_LOGENTRY_ASYNC_CN: 221 printk("%s - Unhandled SLI-3 Command x%x\n", 222 - __FUNCTION__, iocb_cmnd); 223 type = LPFC_UNKNOWN_IOCB; 224 break; 225 default: ··· 1715 rspiocbp = __lpfc_sli_get_iocbq(phba); 1716 if (rspiocbp == NULL) { 1717 printk(KERN_ERR "%s: out of buffers! Failing " 1718 - "completion.\n", __FUNCTION__); 1719 break; 1720 } 1721 ··· 3793 break; 3794 default: 3795 printk(KERN_ERR "%s: Unknown context cmd type, value %d\n", 3796 - __FUNCTION__, ctx_cmd); 3797 break; 3798 } 3799
··· 219 case CMD_IOCB_LOGENTRY_CN: 220 case CMD_IOCB_LOGENTRY_ASYNC_CN: 221 printk("%s - Unhandled SLI-3 Command x%x\n", 222 + __func__, iocb_cmnd); 223 type = LPFC_UNKNOWN_IOCB; 224 break; 225 default: ··· 1715 rspiocbp = __lpfc_sli_get_iocbq(phba); 1716 if (rspiocbp == NULL) { 1717 printk(KERN_ERR "%s: out of buffers! Failing " 1718 + "completion.\n", __func__); 1719 break; 1720 } 1721 ··· 3793 break; 3794 default: 3795 printk(KERN_ERR "%s: Unknown context cmd type, value %d\n", 3796 + __func__, ctx_cmd); 3797 break; 3798 } 3799
+1 -1
drivers/scsi/megaraid/mega_common.h
··· 265 #define ASSERT(expression) \ 266 if (!(expression)) { \ 267 ASSERT_ACTION("assertion failed:(%s), file: %s, line: %d:%s\n", \ 268 - #expression, __FILE__, __LINE__, __FUNCTION__); \ 269 } 270 #else 271 #define ASSERT(expression)
··· 265 #define ASSERT(expression) \ 266 if (!(expression)) { \ 267 ASSERT_ACTION("assertion failed:(%s), file: %s, line: %d:%s\n", \ 268 + #expression, __FILE__, __LINE__, __func__); \ 269 } 270 #else 271 #define ASSERT(expression)
+8 -8
drivers/scsi/megaraid/megaraid_mbox.c
··· 458 459 if (adapter == NULL) { 460 con_log(CL_ANN, (KERN_WARNING 461 - "megaraid: out of memory, %s %d.\n", __FUNCTION__, __LINE__)); 462 463 goto out_probe_one; 464 } ··· 1002 1003 if (!raid_dev->una_mbox64) { 1004 con_log(CL_ANN, (KERN_WARNING 1005 - "megaraid: out of memory, %s %d\n", __FUNCTION__, 1006 __LINE__)); 1007 return -1; 1008 } ··· 1030 if (!adapter->ibuf) { 1031 1032 con_log(CL_ANN, (KERN_WARNING 1033 - "megaraid: out of memory, %s %d\n", __FUNCTION__, 1034 __LINE__)); 1035 1036 goto out_free_common_mbox; ··· 1052 1053 if (adapter->kscb_list == NULL) { 1054 con_log(CL_ANN, (KERN_WARNING 1055 - "megaraid: out of memory, %s %d\n", __FUNCTION__, 1056 __LINE__)); 1057 goto out_free_ibuf; 1058 } ··· 1060 // memory allocation for our command packets 1061 if (megaraid_mbox_setup_dma_pools(adapter) != 0) { 1062 con_log(CL_ANN, (KERN_WARNING 1063 - "megaraid: out of memory, %s %d\n", __FUNCTION__, 1064 __LINE__)); 1065 goto out_free_scb_list; 1066 } ··· 2981 2982 if (pinfo == NULL) { 2983 con_log(CL_ANN, (KERN_WARNING 2984 - "megaraid: out of memory, %s %d\n", __FUNCTION__, 2985 __LINE__)); 2986 2987 return -1; ··· 3508 3509 if (adapter->uscb_list == NULL) { 3510 con_log(CL_ANN, (KERN_WARNING 3511 - "megaraid: out of memory, %s %d\n", __FUNCTION__, 3512 __LINE__)); 3513 return -1; 3514 } ··· 3879 !raid_dev->sysfs_buffer) { 3880 3881 con_log(CL_ANN, (KERN_WARNING 3882 - "megaraid: out of memory, %s %d\n", __FUNCTION__, 3883 __LINE__)); 3884 3885 rval = -ENOMEM;
··· 458 459 if (adapter == NULL) { 460 con_log(CL_ANN, (KERN_WARNING 461 + "megaraid: out of memory, %s %d.\n", __func__, __LINE__)); 462 463 goto out_probe_one; 464 } ··· 1002 1003 if (!raid_dev->una_mbox64) { 1004 con_log(CL_ANN, (KERN_WARNING 1005 + "megaraid: out of memory, %s %d\n", __func__, 1006 __LINE__)); 1007 return -1; 1008 } ··· 1030 if (!adapter->ibuf) { 1031 1032 con_log(CL_ANN, (KERN_WARNING 1033 + "megaraid: out of memory, %s %d\n", __func__, 1034 __LINE__)); 1035 1036 goto out_free_common_mbox; ··· 1052 1053 if (adapter->kscb_list == NULL) { 1054 con_log(CL_ANN, (KERN_WARNING 1055 + "megaraid: out of memory, %s %d\n", __func__, 1056 __LINE__)); 1057 goto out_free_ibuf; 1058 } ··· 1060 // memory allocation for our command packets 1061 if (megaraid_mbox_setup_dma_pools(adapter) != 0) { 1062 con_log(CL_ANN, (KERN_WARNING 1063 + "megaraid: out of memory, %s %d\n", __func__, 1064 __LINE__)); 1065 goto out_free_scb_list; 1066 } ··· 2981 2982 if (pinfo == NULL) { 2983 con_log(CL_ANN, (KERN_WARNING 2984 + "megaraid: out of memory, %s %d\n", __func__, 2985 __LINE__)); 2986 2987 return -1; ··· 3508 3509 if (adapter->uscb_list == NULL) { 3510 con_log(CL_ANN, (KERN_WARNING 3511 + "megaraid: out of memory, %s %d\n", __func__, 3512 __LINE__)); 3513 return -1; 3514 } ··· 3879 !raid_dev->sysfs_buffer) { 3880 3881 con_log(CL_ANN, (KERN_WARNING 3882 + "megaraid: out of memory, %s %d\n", __func__, 3883 __LINE__)); 3884 3885 rval = -ENOMEM;
+2 -2
drivers/scsi/megaraid/megaraid_mm.c
··· 929 !adapter->pthru_dma_pool) { 930 931 con_log(CL_ANN, (KERN_WARNING 932 - "megaraid cmm: out of memory, %s %d\n", __FUNCTION__, 933 __LINE__)); 934 935 rval = (-ENOMEM); ··· 957 958 con_log(CL_ANN, (KERN_WARNING 959 "megaraid cmm: out of memory, %s %d\n", 960 - __FUNCTION__, __LINE__)); 961 962 rval = (-ENOMEM); 963
··· 929 !adapter->pthru_dma_pool) { 930 931 con_log(CL_ANN, (KERN_WARNING 932 + "megaraid cmm: out of memory, %s %d\n", __func__, 933 __LINE__)); 934 935 rval = (-ENOMEM); ··· 957 958 con_log(CL_ANN, (KERN_WARNING 959 "megaraid cmm: out of memory, %s %d\n", 960 + __func__, __LINE__)); 961 962 rval = (-ENOMEM); 963
+2 -2
drivers/scsi/nsp32.c
··· 299 #else 300 # define NSP32_DEBUG_MASK 0xffffff 301 # define nsp32_msg(type, args...) \ 302 - nsp32_message (__FUNCTION__, __LINE__, (type), args) 303 # define nsp32_dbg(mask, args...) \ 304 - nsp32_dmessage(__FUNCTION__, __LINE__, (mask), args) 305 #endif 306 307 #define NSP32_DEBUG_QUEUECOMMAND BIT(0)
··· 299 #else 300 # define NSP32_DEBUG_MASK 0xffffff 301 # define nsp32_msg(type, args...) \ 302 + nsp32_message (__func__, __LINE__, (type), args) 303 # define nsp32_dbg(mask, args...) \ 304 + nsp32_dmessage(__func__, __LINE__, (mask), args) 305 #endif 306 307 #define NSP32_DEBUG_QUEUECOMMAND BIT(0)
+1 -1
drivers/scsi/nsp32_debug.c
··· 88 int i,s; 89 // printk(KERN_DEBUG); 90 print_opcodek(command[0]); 91 - /*printk(KERN_DEBUG "%s ", __FUNCTION__);*/ 92 if ((command[0] >> 5) == 6 || 93 (command[0] >> 5) == 7 ) { 94 s = 12; /* vender specific */
··· 88 int i,s; 89 // printk(KERN_DEBUG); 90 print_opcodek(command[0]); 91 + /*printk(KERN_DEBUG "%s ", __func__);*/ 92 if ((command[0] >> 5) == 6 || 93 (command[0] >> 5) == 7 ) { 94 s = 12; /* vender specific */
+2 -2
drivers/scsi/pcmcia/nsp_cs.c
··· 107 #else 108 # define NSP_DEBUG_MASK 0xffffff 109 # define nsp_msg(type, args...) \ 110 - nsp_cs_message (__FUNCTION__, __LINE__, (type), args) 111 # define nsp_dbg(mask, args...) \ 112 - nsp_cs_dmessage(__FUNCTION__, __LINE__, (mask), args) 113 #endif 114 115 #define NSP_DEBUG_QUEUECOMMAND BIT(0)
··· 107 #else 108 # define NSP_DEBUG_MASK 0xffffff 109 # define nsp_msg(type, args...) \ 110 + nsp_cs_message (__func__, __LINE__, (type), args) 111 # define nsp_dbg(mask, args...) \ 112 + nsp_cs_dmessage(__func__, __LINE__, (mask), args) 113 #endif 114 115 #define NSP_DEBUG_QUEUECOMMAND BIT(0)
+1 -1
drivers/scsi/pcmcia/nsp_debug.c
··· 90 int i, s; 91 printk(KERN_DEBUG); 92 print_opcodek(command[0]); 93 - /*printk(KERN_DEBUG "%s ", __FUNCTION__);*/ 94 if ((command[0] >> 5) == 6 || 95 (command[0] >> 5) == 7 ) { 96 s = 12; /* vender specific */
··· 90 int i, s; 91 printk(KERN_DEBUG); 92 print_opcodek(command[0]); 93 + /*printk(KERN_DEBUG "%s ", __func__);*/ 94 if ((command[0] >> 5) == 6 || 95 (command[0] >> 5) == 7 ) { 96 s = 12; /* vender specific */
+1 -1
drivers/scsi/ppa.c
··· 171 172 #if PPA_DEBUG > 0 173 #define ppa_fail(x,y) printk("ppa: ppa_fail(%i) from %s at line %d\n",\ 174 - y, __FUNCTION__, __LINE__); ppa_fail_func(x,y); 175 static inline void ppa_fail_func(ppa_struct *dev, int error_code) 176 #else 177 static inline void ppa_fail(ppa_struct *dev, int error_code)
··· 171 172 #if PPA_DEBUG > 0 173 #define ppa_fail(x,y) printk("ppa: ppa_fail(%i) from %s at line %d\n",\ 174 + y, __func__, __LINE__); ppa_fail_func(x,y); 175 static inline void ppa_fail_func(ppa_struct *dev, int error_code) 176 #else 177 static inline void ppa_fail(ppa_struct *dev, int error_code)
+6 -6
drivers/scsi/qla1280.c
··· 1695 risc_code_size = *ql1280_board_tbl[ha->devnum].fwlen; 1696 1697 dprintk(1, "%s: DMA RISC code (%i) words\n", 1698 - __FUNCTION__, risc_code_size); 1699 1700 num = 0; 1701 while (risc_code_size > 0) { ··· 1721 mb[7] = pci_dma_hi32(ha->request_dma) & 0xffff; 1722 mb[6] = pci_dma_hi32(ha->request_dma) >> 16; 1723 dprintk(2, "%s: op=%d 0x%p = 0x%4x,0x%4x,0x%4x,0x%4x\n", 1724 - __FUNCTION__, mb[0], 1725 (void *)(long)ha->request_dma, 1726 mb[6], mb[7], mb[2], mb[3]); 1727 err = qla1280_mailbox_command(ha, BIT_4 | BIT_3 | BIT_2 | ··· 1753 if (tbuf[i] != sp[i] && warn++ < 10) { 1754 printk(KERN_ERR "%s: FW compare error @ " 1755 "byte(0x%x) loop#=%x\n", 1756 - __FUNCTION__, i, num); 1757 printk(KERN_ERR "%s: FWbyte=%x " 1758 "FWfromChip=%x\n", 1759 - __FUNCTION__, sp[i], tbuf[i]); 1760 /*break; */ 1761 } 1762 } ··· 1781 int err; 1782 1783 dprintk(1, "%s: Verifying checksum of loaded RISC code.\n", 1784 - __FUNCTION__); 1785 1786 /* Verify checksum of loaded RISC code. */ 1787 mb[0] = MBC_VERIFY_CHECKSUM; ··· 1794 } 1795 1796 /* Start firmware execution. */ 1797 - dprintk(1, "%s: start firmware running.\n", __FUNCTION__); 1798 mb[0] = MBC_EXECUTE_FIRMWARE; 1799 mb[1] = *ql1280_board_tbl[ha->devnum].fwstart; 1800 err = qla1280_mailbox_command(ha, BIT_1 | BIT_0, &mb[0]);
··· 1695 risc_code_size = *ql1280_board_tbl[ha->devnum].fwlen; 1696 1697 dprintk(1, "%s: DMA RISC code (%i) words\n", 1698 + __func__, risc_code_size); 1699 1700 num = 0; 1701 while (risc_code_size > 0) { ··· 1721 mb[7] = pci_dma_hi32(ha->request_dma) & 0xffff; 1722 mb[6] = pci_dma_hi32(ha->request_dma) >> 16; 1723 dprintk(2, "%s: op=%d 0x%p = 0x%4x,0x%4x,0x%4x,0x%4x\n", 1724 + __func__, mb[0], 1725 (void *)(long)ha->request_dma, 1726 mb[6], mb[7], mb[2], mb[3]); 1727 err = qla1280_mailbox_command(ha, BIT_4 | BIT_3 | BIT_2 | ··· 1753 if (tbuf[i] != sp[i] && warn++ < 10) { 1754 printk(KERN_ERR "%s: FW compare error @ " 1755 "byte(0x%x) loop#=%x\n", 1756 + __func__, i, num); 1757 printk(KERN_ERR "%s: FWbyte=%x " 1758 "FWfromChip=%x\n", 1759 + __func__, sp[i], tbuf[i]); 1760 /*break; */ 1761 } 1762 } ··· 1781 int err; 1782 1783 dprintk(1, "%s: Verifying checksum of loaded RISC code.\n", 1784 + __func__); 1785 1786 /* Verify checksum of loaded RISC code. */ 1787 mb[0] = MBC_VERIFY_CHECKSUM; ··· 1794 } 1795 1796 /* Start firmware execution. */ 1797 + dprintk(1, "%s: start firmware running.\n", __func__); 1798 mb[0] = MBC_EXECUTE_FIRMWARE; 1799 mb[1] = *ql1280_board_tbl[ha->devnum].fwstart; 1800 err = qla1280_mailbox_command(ha, BIT_1 | BIT_0, &mb[0]);
+6 -6
drivers/scsi/scsi_debug.c
··· 1753 open_devip = sdebug_device_create(sdbg_host, GFP_ATOMIC); 1754 if (!open_devip) { 1755 printk(KERN_ERR "%s: out of memory at line %d\n", 1756 - __FUNCTION__, __LINE__); 1757 return NULL; 1758 } 1759 } ··· 2656 sdbg_host = kzalloc(sizeof(*sdbg_host),GFP_KERNEL); 2657 if (NULL == sdbg_host) { 2658 printk(KERN_ERR "%s: out of memory at line %d\n", 2659 - __FUNCTION__, __LINE__); 2660 return -ENOMEM; 2661 } 2662 ··· 2667 sdbg_devinfo = sdebug_device_create(sdbg_host, GFP_KERNEL); 2668 if (!sdbg_devinfo) { 2669 printk(KERN_ERR "%s: out of memory at line %d\n", 2670 - __FUNCTION__, __LINE__); 2671 error = -ENOMEM; 2672 goto clean; 2673 } ··· 2987 2988 hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host)); 2989 if (NULL == hpnt) { 2990 - printk(KERN_ERR "%s: scsi_register failed\n", __FUNCTION__); 2991 error = -ENODEV; 2992 return error; 2993 } ··· 3002 3003 error = scsi_add_host(hpnt, &sdbg_host->dev); 3004 if (error) { 3005 - printk(KERN_ERR "%s: scsi_add_host failed\n", __FUNCTION__); 3006 error = -ENODEV; 3007 scsi_host_put(hpnt); 3008 } else ··· 3021 3022 if (!sdbg_host) { 3023 printk(KERN_ERR "%s: Unable to locate host info\n", 3024 - __FUNCTION__); 3025 return -ENODEV; 3026 } 3027
··· 1753 open_devip = sdebug_device_create(sdbg_host, GFP_ATOMIC); 1754 if (!open_devip) { 1755 printk(KERN_ERR "%s: out of memory at line %d\n", 1756 + __func__, __LINE__); 1757 return NULL; 1758 } 1759 } ··· 2656 sdbg_host = kzalloc(sizeof(*sdbg_host),GFP_KERNEL); 2657 if (NULL == sdbg_host) { 2658 printk(KERN_ERR "%s: out of memory at line %d\n", 2659 + __func__, __LINE__); 2660 return -ENOMEM; 2661 } 2662 ··· 2667 sdbg_devinfo = sdebug_device_create(sdbg_host, GFP_KERNEL); 2668 if (!sdbg_devinfo) { 2669 printk(KERN_ERR "%s: out of memory at line %d\n", 2670 + __func__, __LINE__); 2671 error = -ENOMEM; 2672 goto clean; 2673 } ··· 2987 2988 hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host)); 2989 if (NULL == hpnt) { 2990 + printk(KERN_ERR "%s: scsi_register failed\n", __func__); 2991 error = -ENODEV; 2992 return error; 2993 } ··· 3002 3003 error = scsi_add_host(hpnt, &sdbg_host->dev); 3004 if (error) { 3005 + printk(KERN_ERR "%s: scsi_add_host failed\n", __func__); 3006 error = -ENODEV; 3007 scsi_host_put(hpnt); 3008 } else ··· 3021 3022 if (!sdbg_host) { 3023 printk(KERN_ERR "%s: Unable to locate host info\n", 3024 + __func__); 3025 return -ENODEV; 3026 } 3027
+3 -3
drivers/scsi/scsi_devinfo.c
··· 272 } 273 if (from_length > to_length) 274 printk(KERN_WARNING "%s: %s string '%s' is too long\n", 275 - __FUNCTION__, name, from); 276 } 277 278 /** ··· 298 299 devinfo = kmalloc(sizeof(*devinfo), GFP_KERNEL); 300 if (!devinfo) { 301 - printk(KERN_ERR "%s: no memory\n", __FUNCTION__); 302 return -ENOMEM; 303 } 304 ··· 363 strflags = strsep(&next, next_check); 364 if (!model || !strflags) { 365 printk(KERN_ERR "%s: bad dev info string '%s' '%s'" 366 - " '%s'\n", __FUNCTION__, vendor, model, 367 strflags); 368 res = -EINVAL; 369 } else
··· 272 } 273 if (from_length > to_length) 274 printk(KERN_WARNING "%s: %s string '%s' is too long\n", 275 + __func__, name, from); 276 } 277 278 /** ··· 298 299 devinfo = kmalloc(sizeof(*devinfo), GFP_KERNEL); 300 if (!devinfo) { 301 + printk(KERN_ERR "%s: no memory\n", __func__); 302 return -ENOMEM; 303 } 304 ··· 363 strflags = strsep(&next, next_check); 364 if (!model || !strflags) { 365 printk(KERN_ERR "%s: bad dev info string '%s' '%s'" 366 + " '%s'\n", __func__, vendor, model, 367 strflags); 368 res = -EINVAL; 369 } else
+13 -13
drivers/scsi/scsi_error.c
··· 139 scmd->eh_timeout.function = (void (*)(unsigned long)) complete; 140 141 SCSI_LOG_ERROR_RECOVERY(5, printk("%s: scmd: %p, time:" 142 - " %d, (%p)\n", __FUNCTION__, 143 scmd, timeout, complete)); 144 145 add_timer(&scmd->eh_timeout); ··· 163 rtn = del_timer(&scmd->eh_timeout); 164 165 SCSI_LOG_ERROR_RECOVERY(5, printk("%s: scmd: %p," 166 - " rtn: %d\n", __FUNCTION__, 167 scmd, rtn)); 168 169 scmd->eh_timeout.data = (unsigned long)NULL; ··· 233 234 online = scsi_device_online(sdev); 235 236 - SCSI_LOG_ERROR_RECOVERY(5, printk("%s: rtn: %d\n", __FUNCTION__, 237 online)); 238 239 return online; ··· 271 SCSI_LOG_ERROR_RECOVERY(3, 272 sdev_printk(KERN_INFO, sdev, 273 "%s: cmds failed: %d, cancel: %d\n", 274 - __FUNCTION__, cmd_failed, 275 cmd_cancel)); 276 cmd_cancel = 0; 277 cmd_failed = 0; ··· 473 474 SCSI_LOG_ERROR_RECOVERY(3, 475 printk("%s scmd: %p result: %x\n", 476 - __FUNCTION__, scmd, scmd->result)); 477 478 eh_action = scmd->device->host->eh_action; 479 if (eh_action) ··· 490 int rtn; 491 492 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: Snd Host RST\n", 493 - __FUNCTION__)); 494 495 if (!scmd->device->host->hostt->eh_host_reset_handler) 496 return FAILED; ··· 519 int rtn; 520 521 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: Snd Bus RST\n", 522 - __FUNCTION__)); 523 524 if (!scmd->device->host->hostt->eh_bus_reset_handler) 525 return FAILED; ··· 774 775 SCSI_LOG_ERROR_RECOVERY(3, 776 printk("%s: scmd: %p, timeleft: %ld\n", 777 - __FUNCTION__, scmd, timeleft)); 778 779 /* 780 * If there is time left scsi_eh_done got called, and we will ··· 786 rtn = scsi_eh_completed_normally(scmd); 787 SCSI_LOG_ERROR_RECOVERY(3, 788 printk("%s: scsi_eh_completed_normally %x\n", 789 - __FUNCTION__, rtn)); 790 791 switch (rtn) { 792 case SUCCESS: ··· 921 rtn = scsi_send_eh_cmnd(scmd, tur_command, 6, SENSE_TIMEOUT, 0); 922 923 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: scmd %p rtn %x\n", 924 - __FUNCTION__, scmd, rtn)); 925 926 switch (rtn) { 927 case NEEDS_RETRY: ··· 1304 if (!scsi_device_online(scmd->device)) { 1305 SCSI_LOG_ERROR_RECOVERY(5, printk("%s: device offline - report" 1306 " as SUCCESS\n", 1307 - __FUNCTION__)); 1308 return SUCCESS; 1309 } 1310 ··· 1519 * ioctls to queued block devices. 1520 */ 1521 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: waking up host to restart\n", 1522 - __FUNCTION__)); 1523 1524 spin_lock_irqsave(shost->host_lock, flags); 1525 if (scsi_host_set_state(shost, SHOST_RUNNING)) ··· 1843 */ 1844 SCSI_LOG_ERROR_RECOVERY(3, 1845 printk("%s: waking up host to restart after TMF\n", 1846 - __FUNCTION__)); 1847 1848 wake_up(&shost->host_wait); 1849
··· 139 scmd->eh_timeout.function = (void (*)(unsigned long)) complete; 140 141 SCSI_LOG_ERROR_RECOVERY(5, printk("%s: scmd: %p, time:" 142 + " %d, (%p)\n", __func__, 143 scmd, timeout, complete)); 144 145 add_timer(&scmd->eh_timeout); ··· 163 rtn = del_timer(&scmd->eh_timeout); 164 165 SCSI_LOG_ERROR_RECOVERY(5, printk("%s: scmd: %p," 166 + " rtn: %d\n", __func__, 167 scmd, rtn)); 168 169 scmd->eh_timeout.data = (unsigned long)NULL; ··· 233 234 online = scsi_device_online(sdev); 235 236 + SCSI_LOG_ERROR_RECOVERY(5, printk("%s: rtn: %d\n", __func__, 237 online)); 238 239 return online; ··· 271 SCSI_LOG_ERROR_RECOVERY(3, 272 sdev_printk(KERN_INFO, sdev, 273 "%s: cmds failed: %d, cancel: %d\n", 274 + __func__, cmd_failed, 275 cmd_cancel)); 276 cmd_cancel = 0; 277 cmd_failed = 0; ··· 473 474 SCSI_LOG_ERROR_RECOVERY(3, 475 printk("%s scmd: %p result: %x\n", 476 + __func__, scmd, scmd->result)); 477 478 eh_action = scmd->device->host->eh_action; 479 if (eh_action) ··· 490 int rtn; 491 492 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: Snd Host RST\n", 493 + __func__)); 494 495 if (!scmd->device->host->hostt->eh_host_reset_handler) 496 return FAILED; ··· 519 int rtn; 520 521 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: Snd Bus RST\n", 522 + __func__)); 523 524 if (!scmd->device->host->hostt->eh_bus_reset_handler) 525 return FAILED; ··· 774 775 SCSI_LOG_ERROR_RECOVERY(3, 776 printk("%s: scmd: %p, timeleft: %ld\n", 777 + __func__, scmd, timeleft)); 778 779 /* 780 * If there is time left scsi_eh_done got called, and we will ··· 786 rtn = scsi_eh_completed_normally(scmd); 787 SCSI_LOG_ERROR_RECOVERY(3, 788 printk("%s: scsi_eh_completed_normally %x\n", 789 + __func__, rtn)); 790 791 switch (rtn) { 792 case SUCCESS: ··· 921 rtn = scsi_send_eh_cmnd(scmd, tur_command, 6, SENSE_TIMEOUT, 0); 922 923 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: scmd %p rtn %x\n", 924 + __func__, scmd, rtn)); 925 926 switch (rtn) { 927 case NEEDS_RETRY: ··· 1304 if (!scsi_device_online(scmd->device)) { 1305 SCSI_LOG_ERROR_RECOVERY(5, printk("%s: device offline - report" 1306 " as SUCCESS\n", 1307 + __func__)); 1308 return SUCCESS; 1309 } 1310 ··· 1519 * ioctls to queued block devices. 1520 */ 1521 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: waking up host to restart\n", 1522 + __func__)); 1523 1524 spin_lock_irqsave(shost->host_lock, flags); 1525 if (scsi_host_set_state(shost, SHOST_RUNNING)) ··· 1843 */ 1844 SCSI_LOG_ERROR_RECOVERY(3, 1845 printk("%s: waking up host to restart after TMF\n", 1846 + __func__)); 1847 1848 wake_up(&shost->host_wait); 1849
+3 -3
drivers/scsi/scsi_lib.c
··· 1395 1396 if (unlikely(cmd == NULL)) { 1397 printk(KERN_CRIT "impossible request in %s.\n", 1398 - __FUNCTION__); 1399 BUG(); 1400 } 1401 ··· 1519 printk(KERN_CRIT "impossible request in %s.\n" 1520 "please mail a stack trace to " 1521 "linux-scsi@vger.kernel.org\n", 1522 - __FUNCTION__); 1523 blk_dump_rq_flags(req, "foo"); 1524 BUG(); 1525 } ··· 2529 if (unlikely(i == sg_count)) { 2530 printk(KERN_ERR "%s: Bytes in sg: %zu, requested offset %zu, " 2531 "elements %d\n", 2532 - __FUNCTION__, sg_len, *offset, sg_count); 2533 WARN_ON(1); 2534 return NULL; 2535 }
··· 1395 1396 if (unlikely(cmd == NULL)) { 1397 printk(KERN_CRIT "impossible request in %s.\n", 1398 + __func__); 1399 BUG(); 1400 } 1401 ··· 1519 printk(KERN_CRIT "impossible request in %s.\n" 1520 "please mail a stack trace to " 1521 "linux-scsi@vger.kernel.org\n", 1522 + __func__); 1523 blk_dump_rq_flags(req, "foo"); 1524 BUG(); 1525 } ··· 2529 if (unlikely(i == sg_count)) { 2530 printk(KERN_ERR "%s: Bytes in sg: %zu, requested offset %zu, " 2531 "elements %d\n", 2532 + __func__, sg_len, *offset, sg_count); 2533 WARN_ON(1); 2534 return NULL; 2535 }
+4 -4
drivers/scsi/scsi_netlink.c
··· 55 if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) || 56 (skb->len < nlh->nlmsg_len)) { 57 printk(KERN_WARNING "%s: discarding partial skb\n", 58 - __FUNCTION__); 59 return; 60 } 61 ··· 82 83 if (nlh->nlmsg_len < (sizeof(*nlh) + hdr->msglen)) { 84 printk(KERN_WARNING "%s: discarding partial message\n", 85 - __FUNCTION__); 86 return; 87 } 88 ··· 139 error = netlink_register_notifier(&scsi_netlink_notifier); 140 if (error) { 141 printk(KERN_ERR "%s: register of event handler failed - %d\n", 142 - __FUNCTION__, error); 143 return; 144 } 145 ··· 148 THIS_MODULE); 149 if (!scsi_nl_sock) { 150 printk(KERN_ERR "%s: register of recieve handler failed\n", 151 - __FUNCTION__); 152 netlink_unregister_notifier(&scsi_netlink_notifier); 153 } 154
··· 55 if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) || 56 (skb->len < nlh->nlmsg_len)) { 57 printk(KERN_WARNING "%s: discarding partial skb\n", 58 + __func__); 59 return; 60 } 61 ··· 82 83 if (nlh->nlmsg_len < (sizeof(*nlh) + hdr->msglen)) { 84 printk(KERN_WARNING "%s: discarding partial message\n", 85 + __func__); 86 return; 87 } 88 ··· 139 error = netlink_register_notifier(&scsi_netlink_notifier); 140 if (error) { 141 printk(KERN_ERR "%s: register of event handler failed - %d\n", 142 + __func__, error); 143 return; 144 } 145 ··· 148 THIS_MODULE); 149 if (!scsi_nl_sock) { 150 printk(KERN_ERR "%s: register of recieve handler failed\n", 151 + __func__); 152 netlink_unregister_notifier(&scsi_netlink_notifier); 153 } 154
+2 -2
drivers/scsi/scsi_proc.c
··· 114 sht->proc_dir = proc_mkdir(sht->proc_name, proc_scsi); 115 if (!sht->proc_dir) 116 printk(KERN_ERR "%s: proc_mkdir failed for %s\n", 117 - __FUNCTION__, sht->proc_name); 118 else 119 sht->proc_dir->owner = sht->module; 120 } ··· 157 sht->proc_dir, proc_scsi_read, shost); 158 if (!p) { 159 printk(KERN_ERR "%s: Failed to register host %d in" 160 - "%s\n", __FUNCTION__, shost->host_no, 161 sht->proc_name); 162 return; 163 }
··· 114 sht->proc_dir = proc_mkdir(sht->proc_name, proc_scsi); 115 if (!sht->proc_dir) 116 printk(KERN_ERR "%s: proc_mkdir failed for %s\n", 117 + __func__, sht->proc_name); 118 else 119 sht->proc_dir->owner = sht->module; 120 } ··· 157 sht->proc_dir, proc_scsi_read, shost); 158 if (!p) { 159 printk(KERN_ERR "%s: Failed to register host %d in" 160 + "%s\n", __func__, shost->host_no, 161 sht->proc_name); 162 return; 163 }
+6 -6
drivers/scsi/scsi_scan.c
··· 318 put_device(&sdev->sdev_gendev); 319 out: 320 if (display_failure_msg) 321 - printk(ALLOC_FAILURE_MSG, __FUNCTION__); 322 return NULL; 323 } 324 ··· 404 405 starget = kzalloc(size, GFP_KERNEL); 406 if (!starget) { 407 - printk(KERN_ERR "%s: allocation failure\n", __FUNCTION__); 408 return NULL; 409 } 410 dev = &starget->dev; ··· 1337 lun_data = kmalloc(length, GFP_ATOMIC | 1338 (sdev->host->unchecked_isa_dma ? __GFP_DMA : 0)); 1339 if (!lun_data) { 1340 - printk(ALLOC_FAILURE_MSG, __FUNCTION__); 1341 goto out; 1342 } 1343 ··· 1649 { 1650 SCSI_LOG_SCAN_BUS(3, shost_printk (KERN_INFO, shost, 1651 "%s: <%u:%u:%u>\n", 1652 - __FUNCTION__, channel, id, lun)); 1653 1654 if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || 1655 ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || ··· 1703 return NULL; 1704 1705 if (shost->async_scan) { 1706 - printk("%s called twice for host %d", __FUNCTION__, 1707 shost->host_no); 1708 dump_stack(); 1709 return NULL; ··· 1757 mutex_lock(&shost->scan_mutex); 1758 1759 if (!shost->async_scan) { 1760 - printk("%s called twice for host %d", __FUNCTION__, 1761 shost->host_no); 1762 dump_stack(); 1763 mutex_unlock(&shost->scan_mutex);
··· 318 put_device(&sdev->sdev_gendev); 319 out: 320 if (display_failure_msg) 321 + printk(ALLOC_FAILURE_MSG, __func__); 322 return NULL; 323 } 324 ··· 404 405 starget = kzalloc(size, GFP_KERNEL); 406 if (!starget) { 407 + printk(KERN_ERR "%s: allocation failure\n", __func__); 408 return NULL; 409 } 410 dev = &starget->dev; ··· 1337 lun_data = kmalloc(length, GFP_ATOMIC | 1338 (sdev->host->unchecked_isa_dma ? __GFP_DMA : 0)); 1339 if (!lun_data) { 1340 + printk(ALLOC_FAILURE_MSG, __func__); 1341 goto out; 1342 } 1343 ··· 1649 { 1650 SCSI_LOG_SCAN_BUS(3, shost_printk (KERN_INFO, shost, 1651 "%s: <%u:%u:%u>\n", 1652 + __func__, channel, id, lun)); 1653 1654 if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || 1655 ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || ··· 1703 return NULL; 1704 1705 if (shost->async_scan) { 1706 + printk("%s called twice for host %d", __func__, 1707 shost->host_no); 1708 dump_stack(); 1709 return NULL; ··· 1757 mutex_lock(&shost->scan_mutex); 1758 1759 if (!shost->async_scan) { 1760 + printk("%s called twice for host %d", __func__, 1761 shost->host_no); 1762 dump_stack(); 1763 mutex_unlock(&shost->scan_mutex);
+1 -1
drivers/scsi/scsi_tgt_priv.h
··· 6 /* tmp - will replace with SCSI logging stuff */ 7 #define eprintk(fmt, args...) \ 8 do { \ 9 - printk("%s(%d) " fmt, __FUNCTION__, __LINE__, ##args); \ 10 } while (0) 11 12 #define dprintk(fmt, args...)
··· 6 /* tmp - will replace with SCSI logging stuff */ 7 #define eprintk(fmt, args...) \ 8 do { \ 9 + printk("%s(%d) " fmt, __func__, __LINE__, ##args); \ 10 } while (0) 11 12 #define dprintk(fmt, args...)
+6 -6
drivers/scsi/scsi_transport_fc.c
··· 571 name = get_fc_host_event_code_name(event_code); 572 printk(KERN_WARNING 573 "%s: Dropped Event : host %d %s data 0x%08x - err %d\n", 574 - __FUNCTION__, shost->host_no, 575 (name) ? name : "<unknown>", event_data, err); 576 return; 577 } ··· 644 send_vendor_fail: 645 printk(KERN_WARNING 646 "%s: Dropped Event : host %d vendor_unique - err %d\n", 647 - __FUNCTION__, shost->host_no, err); 648 return; 649 } 650 EXPORT_SYMBOL(fc_host_post_vendor_event); ··· 2464 size = (sizeof(struct fc_rport) + fci->f->dd_fcrport_size); 2465 rport = kzalloc(size, GFP_KERNEL); 2466 if (unlikely(!rport)) { 2467 - printk(KERN_ERR "%s: allocation failure\n", __FUNCTION__); 2468 return NULL; 2469 } 2470 ··· 3137 size = (sizeof(struct fc_vport) + fci->f->dd_fcvport_size); 3138 vport = kzalloc(size, GFP_KERNEL); 3139 if (unlikely(!vport)) { 3140 - printk(KERN_ERR "%s: allocation failure\n", __FUNCTION__); 3141 return -ENOMEM; 3142 } 3143 ··· 3201 printk(KERN_ERR 3202 "%s: Cannot create vport symlinks for " 3203 "%s, err=%d\n", 3204 - __FUNCTION__, dev->bus_id, error); 3205 } 3206 spin_lock_irqsave(shost->host_lock, flags); 3207 vport->flags &= ~FC_VPORT_CREATING; ··· 3314 if (stat) 3315 dev_printk(KERN_ERR, vport->dev.parent, 3316 "%s: %s could not be deleted created via " 3317 - "shost%d channel %d - error %d\n", __FUNCTION__, 3318 vport->dev.bus_id, vport->shost->host_no, 3319 vport->channel, stat); 3320 }
··· 571 name = get_fc_host_event_code_name(event_code); 572 printk(KERN_WARNING 573 "%s: Dropped Event : host %d %s data 0x%08x - err %d\n", 574 + __func__, shost->host_no, 575 (name) ? name : "<unknown>", event_data, err); 576 return; 577 } ··· 644 send_vendor_fail: 645 printk(KERN_WARNING 646 "%s: Dropped Event : host %d vendor_unique - err %d\n", 647 + __func__, shost->host_no, err); 648 return; 649 } 650 EXPORT_SYMBOL(fc_host_post_vendor_event); ··· 2464 size = (sizeof(struct fc_rport) + fci->f->dd_fcrport_size); 2465 rport = kzalloc(size, GFP_KERNEL); 2466 if (unlikely(!rport)) { 2467 + printk(KERN_ERR "%s: allocation failure\n", __func__); 2468 return NULL; 2469 } 2470 ··· 3137 size = (sizeof(struct fc_vport) + fci->f->dd_fcvport_size); 3138 vport = kzalloc(size, GFP_KERNEL); 3139 if (unlikely(!vport)) { 3140 + printk(KERN_ERR "%s: allocation failure\n", __func__); 3141 return -ENOMEM; 3142 } 3143 ··· 3201 printk(KERN_ERR 3202 "%s: Cannot create vport symlinks for " 3203 "%s, err=%d\n", 3204 + __func__, dev->bus_id, error); 3205 } 3206 spin_lock_irqsave(shost->host_lock, flags); 3207 vport->flags &= ~FC_VPORT_CREATING; ··· 3314 if (stat) 3315 dev_printk(KERN_ERR, vport->dev.parent, 3316 "%s: %s could not be deleted created via " 3317 + "shost%d channel %d - error %d\n", __func__, 3318 vport->dev.bus_id, vport->shost->host_no, 3319 vport->channel, stat); 3320 }
+2 -2
drivers/scsi/scsi_transport_sas.c
··· 779 return; 780 err: 781 printk(KERN_ERR "%s: Cannot create port links, err=%d\n", 782 - __FUNCTION__, res); 783 } 784 785 static void sas_port_delete_link(struct sas_port *port, ··· 1029 return; 1030 err: 1031 printk(KERN_ERR "%s: Cannot create port backlink, err=%d\n", 1032 - __FUNCTION__, res); 1033 1034 } 1035 EXPORT_SYMBOL(sas_port_mark_backlink);
··· 779 return; 780 err: 781 printk(KERN_ERR "%s: Cannot create port links, err=%d\n", 782 + __func__, res); 783 } 784 785 static void sas_port_delete_link(struct sas_port *port, ··· 1029 return; 1030 err: 1031 printk(KERN_ERR "%s: Cannot create port backlink, err=%d\n", 1032 + __func__, res); 1033 1034 } 1035 EXPORT_SYMBOL(sas_port_mark_backlink);
+4 -4
drivers/scsi/tmscsim.c
··· 452 /* TODO: error handling */ 453 if (pSRB->SGcount != 1) 454 error = 1; 455 - DEBUG1(printk("%s(): Mapped sense buffer %p at %x\n", __FUNCTION__, pcmd->sense_buffer, cmdp->saved_dma_handle)); 456 /* Map SG list */ 457 } else if (scsi_sg_count(pcmd)) { 458 int nseg; ··· 466 if (nseg < 0) 467 error = 1; 468 DEBUG1(printk("%s(): Mapped SG %p with %d (%d) elements\n",\ 469 - __FUNCTION__, scsi_sglist(pcmd), nseg, scsi_sg_count(pcmd))); 470 /* Map single segment */ 471 } else 472 pSRB->SGcount = 0; ··· 483 484 if (pSRB->SRBFlag) { 485 pci_unmap_sg(pdev, &pSRB->Segmentx, 1, DMA_FROM_DEVICE); 486 - DEBUG1(printk("%s(): Unmapped sense buffer at %x\n", __FUNCTION__, cmdp->saved_dma_handle)); 487 } else { 488 scsi_dma_unmap(pcmd); 489 DEBUG1(printk("%s(): Unmapped SG at %p with %d elements\n", 490 - __FUNCTION__, scsi_sglist(pcmd), scsi_sg_count(pcmd))); 491 } 492 } 493
··· 452 /* TODO: error handling */ 453 if (pSRB->SGcount != 1) 454 error = 1; 455 + DEBUG1(printk("%s(): Mapped sense buffer %p at %x\n", __func__, pcmd->sense_buffer, cmdp->saved_dma_handle)); 456 /* Map SG list */ 457 } else if (scsi_sg_count(pcmd)) { 458 int nseg; ··· 466 if (nseg < 0) 467 error = 1; 468 DEBUG1(printk("%s(): Mapped SG %p with %d (%d) elements\n",\ 469 + __func__, scsi_sglist(pcmd), nseg, scsi_sg_count(pcmd))); 470 /* Map single segment */ 471 } else 472 pSRB->SGcount = 0; ··· 483 484 if (pSRB->SRBFlag) { 485 pci_unmap_sg(pdev, &pSRB->Segmentx, 1, DMA_FROM_DEVICE); 486 + DEBUG1(printk("%s(): Unmapped sense buffer at %x\n", __func__, cmdp->saved_dma_handle)); 487 } else { 488 scsi_dma_unmap(pcmd); 489 DEBUG1(printk("%s(): Unmapped SG at %p with %d elements\n", 490 + __func__, scsi_sglist(pcmd), scsi_sg_count(pcmd))); 491 } 492 } 493
+4 -4
drivers/scsi/wd7000.c
··· 148 * 149 * 2002/10/04 - Alan Cox <alan@redhat.com> 150 * 151 - * Use dev_id for interrupts, kill __FUNCTION__ pasting 152 * Add a lock for the scb pool, clean up all other cli/sti usage stuff 153 * Use the adapter lock for the other places we had the cli's 154 * ··· 640 (void) get_options(str, ARRAY_SIZE(ints), ints); 641 642 if (wd7000_card_num >= NUM_CONFIGS) { 643 - printk(KERN_ERR "%s: Too many \"wd7000=\" configurations in " "command line!\n", __FUNCTION__); 644 return 0; 645 } 646 647 if ((ints[0] < 3) || (ints[0] > 5)) { 648 - printk(KERN_ERR "%s: Error in command line! " "Usage: wd7000=<IRQ>,<DMA>,IO>[,<BUS_ON>" "[,<BUS_OFF>]]\n", __FUNCTION__); 649 } else { 650 for (i = 0; i < NUM_IRQS; i++) 651 if (ints[1] == wd7000_irq[i]) ··· 1642 ip[2] = info[2]; 1643 1644 if (info[0] == 255) 1645 - printk(KERN_INFO "%s: current partition table is " "using extended translation.\n", __FUNCTION__); 1646 } 1647 } 1648
··· 148 * 149 * 2002/10/04 - Alan Cox <alan@redhat.com> 150 * 151 + * Use dev_id for interrupts, kill __func__ pasting 152 * Add a lock for the scb pool, clean up all other cli/sti usage stuff 153 * Use the adapter lock for the other places we had the cli's 154 * ··· 640 (void) get_options(str, ARRAY_SIZE(ints), ints); 641 642 if (wd7000_card_num >= NUM_CONFIGS) { 643 + printk(KERN_ERR "%s: Too many \"wd7000=\" configurations in " "command line!\n", __func__); 644 return 0; 645 } 646 647 if ((ints[0] < 3) || (ints[0] > 5)) { 648 + printk(KERN_ERR "%s: Error in command line! " "Usage: wd7000=<IRQ>,<DMA>,IO>[,<BUS_ON>" "[,<BUS_OFF>]]\n", __func__); 649 } else { 650 for (i = 0; i < NUM_IRQS; i++) 651 if (ints[1] == wd7000_irq[i]) ··· 1642 ip[2] = info[2]; 1643 1644 if (info[0] == 255) 1645 + printk(KERN_INFO "%s: current partition table is " "using extended translation.\n", __func__); 1646 } 1647 } 1648
+4 -4
drivers/scsi/zalon.c
··· 68 if (status == PDC_RET_OK) { 69 clock = (int) pdc_result[16]; 70 } else { 71 - printk(KERN_WARNING "%s: pdc_iodc_read returned %d\n", __FUNCTION__, status); 72 clock = defaultclock; 73 } 74 75 - printk(KERN_DEBUG "%s: SCSI clock %d\n", __FUNCTION__, clock); 76 return clock; 77 } 78 #endif ··· 108 */ 109 dev->irq = gsc_alloc_irq(&gsc_irq); 110 111 - printk(KERN_INFO "%s: Zalon version %d, IRQ %d\n", __FUNCTION__, 112 zalon_vers, dev->irq); 113 114 __raw_writel(gsc_irq.txn_addr | gsc_irq.txn_data, zalon + IO_MODULE_EIM); 115 116 if (zalon_vers == 0) 117 - printk(KERN_WARNING "%s: Zalon 1.1 or earlier\n", __FUNCTION__); 118 119 memset(&device, 0, sizeof(struct ncr_device)); 120
··· 68 if (status == PDC_RET_OK) { 69 clock = (int) pdc_result[16]; 70 } else { 71 + printk(KERN_WARNING "%s: pdc_iodc_read returned %d\n", __func__, status); 72 clock = defaultclock; 73 } 74 75 + printk(KERN_DEBUG "%s: SCSI clock %d\n", __func__, clock); 76 return clock; 77 } 78 #endif ··· 108 */ 109 dev->irq = gsc_alloc_irq(&gsc_irq); 110 111 + printk(KERN_INFO "%s: Zalon version %d, IRQ %d\n", __func__, 112 zalon_vers, dev->irq); 113 114 __raw_writel(gsc_irq.txn_addr | gsc_irq.txn_data, zalon + IO_MODULE_EIM); 115 116 if (zalon_vers == 0) 117 + printk(KERN_WARNING "%s: Zalon 1.1 or earlier\n", __func__); 118 119 memset(&device, 0, sizeof(struct ncr_device)); 120