From: Chad Dupuis Date: Tue, 10 Apr 2012 11:40:10 +0000 (+0530) Subject: qla2xxx: Use ql_log* #define's in ql_log() and ql_log_pci(). X-Git-Tag: v2.6.39-400.9.0~423^2~90 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=45a778feec22aa91e9893abe536ae2a5630545df;p=users%2Fjedix%2Flinux-maple.git qla2xxx: Use ql_log* #define's in ql_log() and ql_log_pci(). JIRA Key: V2632FC-127 Signed-off-by: Saurav Kashyap --- diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c index b96e21d2e517..7180c20daf67 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, ...) 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: