cxgbe(4): Add adapter information to messages logged by the OS-agnostic
code in t4_hw.c. MFC after: 1 week Sponsored by: Chelsio Communications
This commit is contained in:
parent
0c506150b7
commit
771e06ec75
@ -42,10 +42,14 @@
|
||||
#include <sys/syslog.h>
|
||||
#include <dev/pci/pcireg.h>
|
||||
|
||||
#define CH_ERR(adap, fmt, ...) log(LOG_ERR, fmt, ##__VA_ARGS__)
|
||||
#define CH_WARN(adap, fmt, ...) log(LOG_WARNING, fmt, ##__VA_ARGS__)
|
||||
#define CH_ALERT(adap, fmt, ...) log(LOG_ALERT, fmt, ##__VA_ARGS__)
|
||||
#define CH_WARN_RATELIMIT(adap, fmt, ...) log(LOG_WARNING, fmt, ##__VA_ARGS__)
|
||||
#define CH_ERR(adap, fmt, ...) log(LOG_ERR, "%s: " fmt, \
|
||||
device_get_nameunit(adap->dev), ##__VA_ARGS__)
|
||||
#define CH_WARN(adap, fmt, ...) log(LOG_WARNING, "%s: " fmt, \
|
||||
device_get_nameunit(adap->dev), ##__VA_ARGS__)
|
||||
#define CH_ALERT(adap, fmt, ...) log(LOG_ALERT, "%s: " fmt, \
|
||||
device_get_nameunit(adap->dev), ##__VA_ARGS__)
|
||||
#define CH_WARN_RATELIMIT(adap, fmt, ...) log(LOG_WARNING, "%s: " fmt, \
|
||||
device_get_nameunit(adap->dev), ##__VA_ARGS__)
|
||||
|
||||
#ifndef LINUX_TYPES_DEFINED
|
||||
typedef int8_t s8;
|
||||
|
Loading…
Reference in New Issue
Block a user