[SCSI] qla2xxx: Use ql_log* #define's in ql_log() and ql_log_pci().
authorChad Dupuis <chad.dupuis@qlogic.com>
Thu, 9 Feb 2012 19:15:48 +0000 (11:15 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:22:17 +0000 (08:22 -0600)
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>
drivers/scsi/qla2xxx/qla_dbg.c

index 472ee5e96e69563becbd8c979fc86ce0d1bd6b1b..e9153104afe1cb87403f2db01db5259bc362bed2 100644 (file)
@@ -2364,13 +2364,13 @@ ql_log(uint32_t level, scsi_qla_host_t *vha, int32_t id, const char *fmt, ...)
        vaf.va = &va;
 
        switch (level) {
-       case 0: /* FATAL LOG */
+       case ql_log_fatal: /* FATAL LOG */
                pr_crit("%s%pV", pbuf, &vaf);
                break;
-       case 1:
+       case ql_log_warn:
                pr_err("%s%pV", pbuf, &vaf);
                break;
-       case 2:
+       case ql_log_info:
                pr_warn("%s%pV", pbuf, &vaf);
                break;
        default:
@@ -2419,13 +2419,13 @@ ql_log_pci(uint32_t level, struct pci_dev *pdev, int32_t id,
        vaf.va = &va;
 
        switch (level) {
-       case 0: /* FATAL LOG */
+       case ql_log_fatal: /* FATAL LOG */
                pr_crit("%s%pV", pbuf, &vaf);
                break;
-       case 1:
+       case ql_log_warn:
                pr_err("%s%pV", pbuf, &vaf);
                break;
-       case 2:
+       case ql_log_info:
                pr_warn("%s%pV", pbuf, &vaf);
                break;
        default: