diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-31 04:25:55 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-31 05:36:21 +0200 |
commit | c4bf6e6ea0670ecc856a4a8373217cf467f88b84 (patch) | |
tree | 081c9503db19ebbd36b034d6bff7f8a109e4147a /src/compat | |
parent | compat: remove warning for < 4.1 (diff) | |
download | wireguard-monolithic-historical-c4bf6e6ea0670ecc856a4a8373217cf467f88b84.tar.xz wireguard-monolithic-historical-c4bf6e6ea0670ecc856a4a8373217cf467f88b84.zip |
debug: print interface name in dmesg
Diffstat (limited to 'src/compat')
-rw-r--r-- | src/compat/compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index e504a0b..6a5f33c 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -238,10 +238,10 @@ static inline struct net_device *netdev_pub(void *dev) #endif #if defined(CONFIG_DYNAMIC_DEBUG) || defined(DEBUG) -#define net_dbg_skb_ratelimited(fmt, skb, ...) do { \ +#define net_dbg_skb_ratelimited(fmt, dev, skb, ...) do { \ struct endpoint __endpoint; \ socket_endpoint_from_skb(&__endpoint, skb); \ - net_dbg_ratelimited(fmt, &__endpoint.addr, ##__VA_ARGS__); \ + net_dbg_ratelimited(fmt, dev, &__endpoint.addr, ##__VA_ARGS__); \ } while(0) #else #define net_dbg_skb_ratelimited(fmt, skb, ...) |