2005-04-17 23:05:31 +02:00
|
|
|
/*******************************************************************
|
|
|
|
* This file is part of the Emulex Linux Device Driver for *
|
2005-06-25 16:34:39 +02:00
|
|
|
* Fibre Channel Host Bus Adapters. *
|
2008-02-09 00:50:14 +01:00
|
|
|
* Copyright (C) 2004-2008 Emulex. All rights reserved. *
|
2005-06-25 16:34:39 +02:00
|
|
|
* EMULEX and SLI are trademarks of Emulex. *
|
2005-04-17 23:05:31 +02:00
|
|
|
* www.emulex.com *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
2005-06-25 16:34:39 +02:00
|
|
|
* modify it under the terms of version 2 of the GNU General *
|
|
|
|
* Public License as published by the Free Software Foundation. *
|
|
|
|
* This program is distributed in the hope that it will be useful. *
|
|
|
|
* ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND *
|
|
|
|
* WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, *
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
|
|
|
|
* DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
|
|
|
|
* TO BE LEGALLY INVALID. See the GNU General Public License for *
|
|
|
|
* more details, a copy of which can be found in the file COPYING *
|
|
|
|
* included with this package. *
|
2005-04-17 23:05:31 +02:00
|
|
|
*******************************************************************/
|
|
|
|
|
|
|
|
#define LOG_ELS 0x1 /* ELS events */
|
|
|
|
#define LOG_DISCOVERY 0x2 /* Link discovery events */
|
|
|
|
#define LOG_MBOX 0x4 /* Mailbox events */
|
|
|
|
#define LOG_INIT 0x8 /* Initialization events */
|
|
|
|
#define LOG_LINK_EVENT 0x10 /* Link events */
|
|
|
|
#define LOG_IP 0x20 /* IP traffic history */
|
|
|
|
#define LOG_FCP 0x40 /* FCP traffic history */
|
|
|
|
#define LOG_NODE 0x80 /* Node table events */
|
2007-10-27 19:37:05 +02:00
|
|
|
#define LOG_TEMP 0x100 /* Temperature sensor events */
|
2005-04-17 23:05:31 +02:00
|
|
|
#define LOG_MISC 0x400 /* Miscellaneous events */
|
|
|
|
#define LOG_SLI 0x800 /* SLI events */
|
2006-12-02 19:34:42 +01:00
|
|
|
#define LOG_FCP_ERROR 0x1000 /* log errors, not underruns */
|
2005-04-17 23:05:31 +02:00
|
|
|
#define LOG_LIBDFC 0x2000 /* Libdfc events */
|
2007-06-18 02:56:38 +02:00
|
|
|
#define LOG_VPORT 0x4000 /* NPIV events */
|
2005-04-17 23:05:31 +02:00
|
|
|
#define LOG_ALL_MSG 0xffff /* LOG all messages */
|
|
|
|
|
2007-08-02 17:10:09 +02:00
|
|
|
#define lpfc_printf_vlog(vport, level, mask, fmt, arg...) \
|
2008-02-09 00:50:14 +01:00
|
|
|
do { \
|
2007-08-02 17:10:09 +02:00
|
|
|
{ if (((mask) &(vport)->cfg_log_verbose) || (level[1] <= '3')) \
|
|
|
|
dev_printk(level, &((vport)->phba->pcidev)->dev, "%d:(%d):" \
|
2008-02-09 00:50:14 +01:00
|
|
|
fmt, (vport)->phba->brd_no, vport->vpi, ##arg); } \
|
|
|
|
} while (0)
|
2007-08-02 17:10:09 +02:00
|
|
|
|
2005-04-17 23:05:31 +02:00
|
|
|
#define lpfc_printf_log(phba, level, mask, fmt, arg...) \
|
2008-02-09 00:50:14 +01:00
|
|
|
do { \
|
2007-08-02 17:10:09 +02:00
|
|
|
{ if (((mask) &(phba)->pport->cfg_log_verbose) || (level[1] <= '3')) \
|
|
|
|
dev_printk(level, &((phba)->pcidev)->dev, "%d:" \
|
2008-02-09 00:50:14 +01:00
|
|
|
fmt, phba->brd_no, ##arg); } \
|
|
|
|
} while (0)
|