scsi: lpfc: Add log macros to allow print by serverity or verbosity setting
authorJames Smart <jsmart2021@gmail.com>
Fri, 18 Oct 2019 21:18:28 +0000 (14:18 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Oct 2019 01:02:05 +0000 (21:02 -0400)
commitb1dfa5411ea440f7a5bd65176259ffb3bfbdecf0
tree15b0120c91beb4b6017850e91d57f9e6805d8ac3
parent95bfc6d8ad86a76c89f62bb466f740b0fc05a667
scsi: lpfc: Add log macros to allow print by serverity or verbosity setting

Add two new macros to aid in message logging:

Both macros print a message if the corresponding lpfc verbosity setting is
set or the kernel log level is WARNING or more critical.

One macro is for use with a phba structure, the other with a vport
structure.

[mkp: typo]

Link: https://lore.kernel.org/r/20191018211832.7917-13-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_logmsg.h