summaryrefslogtreecommitdiffhomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-11 20:07:16 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-15 02:42:36 +0100
commit47b7ab7a6c1ccc98e98fd50ac8a9edfc22c587f3 (patch)
tree921b41e737298ecec219a7c2486690c1a5e0150d /src/device.c
parent032d0526c9b52d1391fc14fa532ef5162e4c1822 (diff)
debug: cleanup skb printing
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/device.c b/src/device.c
index 8774d80..564d09b 100644
--- a/src/device.c
+++ b/src/device.c
@@ -111,11 +111,7 @@ static netdev_tx_t xmit(struct sk_buff *skb, struct net_device *dev)
peer = routing_table_lookup_dst(&wg->peer_routing_table, skb);
if (unlikely(!peer)) {
-#if defined(CONFIG_DYNAMIC_DEBUG) || defined(DEBUG)
- struct endpoint endpoint;
- socket_endpoint_from_skb(&endpoint, skb);
- net_dbg_ratelimited("No peer is configured for %pISc\n", &endpoint.addr_storage);
-#endif
+ net_dbg_skb_ratelimited("No peer is configured for %pISc\n", skb);
skb_unsendable(skb, dev);
return -ENOKEY;
}