summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2017-07-28 08:59:43 -0700
committerDavid S. Miller <davem@davemloft.net>2017-07-29 15:25:43 -0700
commit4a2176c63b0f95fdb66d363c7e3dacc145a4f038 (patch)
tree8e7fb710fccc46138daff69f03de02e596a8081d /drivers/net/hyperv/netvsc.c
parent867047c4512aa65fb4cf66b253b51b830c7fa172 (diff)
downloadtalos-op-linux-4a2176c63b0f95fdb66d363c7e3dacc145a4f038.tar.gz
talos-op-linux-4a2176c63b0f95fdb66d363c7e3dacc145a4f038.zip
netvsc: don't print pointer value in error message
Using %p to print pointer to packet meta-data doesn't give any good info, and exposes kernel memory offsets. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
-rw-r--r--drivers/net/hyperv/netvsc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index 94c00acac58a..f0c15e782ce0 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -805,8 +805,10 @@ static inline int netvsc_send_pkt(
ret = -ENOSPC;
}
} else {
- netdev_err(ndev, "Unable to send packet %p ret %d\n",
- packet, ret);
+ netdev_err(ndev,
+ "Unable to send packet pages %u len %u, ret %d\n",
+ packet->page_buf_cnt, packet->total_data_buflen,
+ ret);
}
return ret;
OpenPOWER on IntegriCloud