aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_dbg.c
diff options
context:
space:
mode:
authorChad Dupuis <chad.dupuis@qlogic.com>2012-02-09 14:15:48 -0500
committerJames Bottomley <JBottomley@Parallels.com>2012-02-19 09:22:17 -0500
commit70a3fc7671a70d3ba3e606a38bd70834f08d10f3 (patch)
tree481a206497f13100d3b72f5bb106e3aa1fba1ce3 /drivers/scsi/qla2xxx/qla_dbg.c
parent3256b435819195ce06696e206b792ad41083528a (diff)
[SCSI] qla2xxx: Use ql_log* #define's in ql_log() and ql_log_pci().
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_dbg.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_dbg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c
index 472ee5e96e69..e9153104afe1 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.c
+++ b/drivers/scsi/qla2xxx/qla_dbg.c
@@ -2364,13 +2364,13 @@ ql_log(uint32_t level, scsi_qla_host_t *vha, int32_t id, const char *fmt, ...)
2364 vaf.va = &va; 2364 vaf.va = &va;
2365 2365
2366 switch (level) { 2366 switch (level) {
2367 case 0: /* FATAL LOG */ 2367 case ql_log_fatal: /* FATAL LOG */
2368 pr_crit("%s%pV", pbuf, &vaf); 2368 pr_crit("%s%pV", pbuf, &vaf);
2369 break; 2369 break;
2370 case 1: 2370 case ql_log_warn:
2371 pr_err("%s%pV", pbuf, &vaf); 2371 pr_err("%s%pV", pbuf, &vaf);
2372 break; 2372 break;
2373 case 2: 2373 case ql_log_info:
2374 pr_warn("%s%pV", pbuf, &vaf); 2374 pr_warn("%s%pV", pbuf, &vaf);
2375 break; 2375 break;
2376 default: 2376 default:
@@ -2419,13 +2419,13 @@ ql_log_pci(uint32_t level, struct pci_dev *pdev, int32_t id,
2419 vaf.va = &va; 2419 vaf.va = &va;
2420 2420
2421 switch (level) { 2421 switch (level) {
2422 case 0: /* FATAL LOG */ 2422 case ql_log_fatal: /* FATAL LOG */
2423 pr_crit("%s%pV", pbuf, &vaf); 2423 pr_crit("%s%pV", pbuf, &vaf);
2424 break; 2424 break;
2425 case 1: 2425 case ql_log_warn:
2426 pr_err("%s%pV", pbuf, &vaf); 2426 pr_err("%s%pV", pbuf, &vaf);
2427 break; 2427 break;
2428 case 2: 2428 case ql_log_info:
2429 pr_warn("%s%pV", pbuf, &vaf); 2429 pr_warn("%s%pV", pbuf, &vaf);
2430 break; 2430 break;
2431 default: 2431 default: