]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - drivers/scsi/lpfc/lpfc_logmsg.h
[SCSI] lpfc 8.3.2 : Update of copyrights
[mirror_ubuntu-bionic-kernel.git] / drivers / scsi / lpfc / lpfc_logmsg.h
CommitLineData
dea3101e
JB
1/*******************************************************************
2 * This file is part of the Emulex Linux Device Driver for *
c44ce173 3 * Fibre Channel Host Bus Adapters. *
d8e93df1 4 * Copyright (C) 2004-2009 Emulex. All rights reserved. *
c44ce173 5 * EMULEX and SLI are trademarks of Emulex. *
dea3101e
JB
6 * www.emulex.com *
7 * *
8 * This program is free software; you can redistribute it and/or *
c44ce173
JSEC
9 * modify it under the terms of version 2 of the GNU General *
10 * Public License as published by the Free Software Foundation. *
11 * This program is distributed in the hope that it will be useful. *
12 * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND *
13 * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, *
14 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
15 * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
16 * TO BE LEGALLY INVALID. See the GNU General Public License for *
17 * more details, a copy of which can be found in the file COPYING *
18 * included with this package. *
dea3101e
JB
19 *******************************************************************/
20
dea3101e
JB
21#define LOG_ELS 0x1 /* ELS events */
22#define LOG_DISCOVERY 0x2 /* Link discovery events */
23#define LOG_MBOX 0x4 /* Mailbox events */
24#define LOG_INIT 0x8 /* Initialization events */
25#define LOG_LINK_EVENT 0x10 /* Link events */
26#define LOG_IP 0x20 /* IP traffic history */
27#define LOG_FCP 0x40 /* FCP traffic history */
28#define LOG_NODE 0x80 /* Node table events */
57127f15 29#define LOG_TEMP 0x100 /* Temperature sensor events */
a257bf90 30#define LOG_BG 0x200 /* BlockGuard events */
dea3101e
JB
31#define LOG_MISC 0x400 /* Miscellaneous events */
32#define LOG_SLI 0x800 /* SLI events */
c7743956 33#define LOG_FCP_ERROR 0x1000 /* log errors, not underruns */
dea3101e 34#define LOG_LIBDFC 0x2000 /* Libdfc events */
92d7f7b0 35#define LOG_VPORT 0x4000 /* NPIV events */
dea3101e
JB
36#define LOG_ALL_MSG 0xffff /* LOG all messages */
37
e8b62011 38#define lpfc_printf_vlog(vport, level, mask, fmt, arg...) \
7f5f3d0d 39 do { \
e8b62011
JS
40 { if (((mask) &(vport)->cfg_log_verbose) || (level[1] <= '3')) \
41 dev_printk(level, &((vport)->phba->pcidev)->dev, "%d:(%d):" \
7f5f3d0d
JS
42 fmt, (vport)->phba->brd_no, vport->vpi, ##arg); } \
43 } while (0)
e8b62011 44
dea3101e 45#define lpfc_printf_log(phba, level, mask, fmt, arg...) \
7f5f3d0d 46 do { \
e8b62011
JS
47 { if (((mask) &(phba)->pport->cfg_log_verbose) || (level[1] <= '3')) \
48 dev_printk(level, &((phba)->pcidev)->dev, "%d:" \
7f5f3d0d
JS
49 fmt, phba->brd_no, ##arg); } \
50 } while (0)