aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2fc/bnx2fc_tgt.c
diff options
context:
space:
mode:
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>2011-06-28 02:30:53 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-07-26 05:54:41 -0400
commitb2a554ff9ad5cdd8d00dac168f2bb3db7ccedb61 (patch)
tree76980d7b7724fce06b7a12d7b2e3a19ad39d08d3 /drivers/scsi/bnx2fc/bnx2fc_tgt.c
parent0ac2377b61089e160d8e13b03cfdec89572cd741 (diff)
[SCSI] bnx2fc: Replace printks with KERN_ALERT to KERN_ERR/KERN_INFO
Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bnx2fc/bnx2fc_tgt.c')
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_tgt.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_tgt.c b/drivers/scsi/bnx2fc/bnx2fc_tgt.c
index 3e892bd66fbe..4be391edd0c6 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_tgt.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_tgt.c
@@ -403,7 +403,7 @@ void bnx2fc_rport_event_handler(struct fc_lport *lport,
403 switch (event) { 403 switch (event) {
404 case RPORT_EV_READY: 404 case RPORT_EV_READY:
405 if (!rport) { 405 if (!rport) {
406 printk(KERN_ALERT PFX "rport is NULL: ERROR!\n"); 406 printk(KERN_ERR PFX "rport is NULL: ERROR!\n");
407 break; 407 break;
408 } 408 }
409 409
@@ -415,7 +415,7 @@ void bnx2fc_rport_event_handler(struct fc_lport *lport,
415 * We should not come here, as lport will 415 * We should not come here, as lport will
416 * take care of fabric login 416 * take care of fabric login
417 */ 417 */
418 printk(KERN_ALERT PFX "%x - rport_event_handler ERROR\n", 418 printk(KERN_ERR PFX "%x - rport_event_handler ERROR\n",
419 rdata->ids.port_id); 419 rdata->ids.port_id);
420 break; 420 break;
421 } 421 }
@@ -483,7 +483,7 @@ void bnx2fc_rport_event_handler(struct fc_lport *lport,
483 break; 483 break;
484 484
485 if (!rport) { 485 if (!rport) {
486 printk(KERN_ALERT PFX "%x - rport not created Yet!!\n", 486 printk(KERN_INFO PFX "%x - rport not created Yet!!\n",
487 port_id); 487 port_id);
488 break; 488 break;
489 } 489 }
@@ -633,7 +633,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
633 tgt->sq = dma_alloc_coherent(&hba->pcidev->dev, tgt->sq_mem_size, 633 tgt->sq = dma_alloc_coherent(&hba->pcidev->dev, tgt->sq_mem_size,
634 &tgt->sq_dma, GFP_KERNEL); 634 &tgt->sq_dma, GFP_KERNEL);
635 if (!tgt->sq) { 635 if (!tgt->sq) {
636 printk(KERN_ALERT PFX "unable to allocate SQ memory %d\n", 636 printk(KERN_ERR PFX "unable to allocate SQ memory %d\n",
637 tgt->sq_mem_size); 637 tgt->sq_mem_size);
638 goto mem_alloc_failure; 638 goto mem_alloc_failure;
639 } 639 }
@@ -646,7 +646,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
646 tgt->cq = dma_alloc_coherent(&hba->pcidev->dev, tgt->cq_mem_size, 646 tgt->cq = dma_alloc_coherent(&hba->pcidev->dev, tgt->cq_mem_size,
647 &tgt->cq_dma, GFP_KERNEL); 647 &tgt->cq_dma, GFP_KERNEL);
648 if (!tgt->cq) { 648 if (!tgt->cq) {
649 printk(KERN_ALERT PFX "unable to allocate CQ memory %d\n", 649 printk(KERN_ERR PFX "unable to allocate CQ memory %d\n",
650 tgt->cq_mem_size); 650 tgt->cq_mem_size);
651 goto mem_alloc_failure; 651 goto mem_alloc_failure;
652 } 652 }
@@ -659,7 +659,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
659 tgt->rq = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_mem_size, 659 tgt->rq = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_mem_size,
660 &tgt->rq_dma, GFP_KERNEL); 660 &tgt->rq_dma, GFP_KERNEL);
661 if (!tgt->rq) { 661 if (!tgt->rq) {
662 printk(KERN_ALERT PFX "unable to allocate RQ memory %d\n", 662 printk(KERN_ERR PFX "unable to allocate RQ memory %d\n",
663 tgt->rq_mem_size); 663 tgt->rq_mem_size);
664 goto mem_alloc_failure; 664 goto mem_alloc_failure;
665 } 665 }
@@ -671,7 +671,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
671 tgt->rq_pbl = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_pbl_size, 671 tgt->rq_pbl = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_pbl_size,
672 &tgt->rq_pbl_dma, GFP_KERNEL); 672 &tgt->rq_pbl_dma, GFP_KERNEL);
673 if (!tgt->rq_pbl) { 673 if (!tgt->rq_pbl) {
674 printk(KERN_ALERT PFX "unable to allocate RQ PBL %d\n", 674 printk(KERN_ERR PFX "unable to allocate RQ PBL %d\n",
675 tgt->rq_pbl_size); 675 tgt->rq_pbl_size);
676 goto mem_alloc_failure; 676 goto mem_alloc_failure;
677 } 677 }
@@ -697,7 +697,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
697 tgt->xferq = dma_alloc_coherent(&hba->pcidev->dev, tgt->xferq_mem_size, 697 tgt->xferq = dma_alloc_coherent(&hba->pcidev->dev, tgt->xferq_mem_size,
698 &tgt->xferq_dma, GFP_KERNEL); 698 &tgt->xferq_dma, GFP_KERNEL);
699 if (!tgt->xferq) { 699 if (!tgt->xferq) {
700 printk(KERN_ALERT PFX "unable to allocate XFERQ %d\n", 700 printk(KERN_ERR PFX "unable to allocate XFERQ %d\n",
701 tgt->xferq_mem_size); 701 tgt->xferq_mem_size);
702 goto mem_alloc_failure; 702 goto mem_alloc_failure;
703 } 703 }
@@ -711,7 +711,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
711 tgt->confq = dma_alloc_coherent(&hba->pcidev->dev, tgt->confq_mem_size, 711 tgt->confq = dma_alloc_coherent(&hba->pcidev->dev, tgt->confq_mem_size,
712 &tgt->confq_dma, GFP_KERNEL); 712 &tgt->confq_dma, GFP_KERNEL);
713 if (!tgt->confq) { 713 if (!tgt->confq) {
714 printk(KERN_ALERT PFX "unable to allocate CONFQ %d\n", 714 printk(KERN_ERR PFX "unable to allocate CONFQ %d\n",
715 tgt->confq_mem_size); 715 tgt->confq_mem_size);
716 goto mem_alloc_failure; 716 goto mem_alloc_failure;
717 } 717 }
@@ -726,7 +726,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
726 tgt->confq_pbl_size, 726 tgt->confq_pbl_size,
727 &tgt->confq_pbl_dma, GFP_KERNEL); 727 &tgt->confq_pbl_dma, GFP_KERNEL);
728 if (!tgt->confq_pbl) { 728 if (!tgt->confq_pbl) {
729 printk(KERN_ALERT PFX "unable to allocate CONFQ PBL %d\n", 729 printk(KERN_ERR PFX "unable to allocate CONFQ PBL %d\n",
730 tgt->confq_pbl_size); 730 tgt->confq_pbl_size);
731 goto mem_alloc_failure; 731 goto mem_alloc_failure;
732 } 732 }
@@ -751,7 +751,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
751 tgt->conn_db_mem_size, 751 tgt->conn_db_mem_size,
752 &tgt->conn_db_dma, GFP_KERNEL); 752 &tgt->conn_db_dma, GFP_KERNEL);
753 if (!tgt->conn_db) { 753 if (!tgt->conn_db) {
754 printk(KERN_ALERT PFX "unable to allocate conn_db %d\n", 754 printk(KERN_ERR PFX "unable to allocate conn_db %d\n",
755 tgt->conn_db_mem_size); 755 tgt->conn_db_mem_size);
756 goto mem_alloc_failure; 756 goto mem_alloc_failure;
757 } 757 }
@@ -767,7 +767,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
767 &tgt->lcq_dma, GFP_KERNEL); 767 &tgt->lcq_dma, GFP_KERNEL);
768 768
769 if (!tgt->lcq) { 769 if (!tgt->lcq) {
770 printk(KERN_ALERT PFX "unable to allocate lcq %d\n", 770 printk(KERN_ERR PFX "unable to allocate lcq %d\n",
771 tgt->lcq_mem_size); 771 tgt->lcq_mem_size);
772 goto mem_alloc_failure; 772 goto mem_alloc_failure;
773 } 773 }