mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
[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>
This commit is contained in:
parent
3256b43581
commit
70a3fc7671
@ -2364,13 +2364,13 @@ ql_log(uint32_t level, scsi_qla_host_t *vha, int32_t id, const char *fmt, ...)
|
|||||||
vaf.va = &va;
|
vaf.va = &va;
|
||||||
|
|
||||||
switch (level) {
|
switch (level) {
|
||||||
case 0: /* FATAL LOG */
|
case ql_log_fatal: /* FATAL LOG */
|
||||||
pr_crit("%s%pV", pbuf, &vaf);
|
pr_crit("%s%pV", pbuf, &vaf);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case ql_log_warn:
|
||||||
pr_err("%s%pV", pbuf, &vaf);
|
pr_err("%s%pV", pbuf, &vaf);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case ql_log_info:
|
||||||
pr_warn("%s%pV", pbuf, &vaf);
|
pr_warn("%s%pV", pbuf, &vaf);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -2419,13 +2419,13 @@ ql_log_pci(uint32_t level, struct pci_dev *pdev, int32_t id,
|
|||||||
vaf.va = &va;
|
vaf.va = &va;
|
||||||
|
|
||||||
switch (level) {
|
switch (level) {
|
||||||
case 0: /* FATAL LOG */
|
case ql_log_fatal: /* FATAL LOG */
|
||||||
pr_crit("%s%pV", pbuf, &vaf);
|
pr_crit("%s%pV", pbuf, &vaf);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case ql_log_warn:
|
||||||
pr_err("%s%pV", pbuf, &vaf);
|
pr_err("%s%pV", pbuf, &vaf);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case ql_log_info:
|
||||||
pr_warn("%s%pV", pbuf, &vaf);
|
pr_warn("%s%pV", pbuf, &vaf);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user