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>
This commit is contained in:
stephen hemminger 2017-07-28 08:59:43 -07:00 committed by David S. Miller
parent 867047c451
commit 4a2176c63b

View File

@ -805,8 +805,10 @@ static inline int netvsc_send_pkt(
ret = -ENOSPC; ret = -ENOSPC;
} }
} else { } else {
netdev_err(ndev, "Unable to send packet %p ret %d\n", netdev_err(ndev,
packet, ret); "Unable to send packet pages %u len %u, ret %d\n",
packet->page_buf_cnt, packet->total_data_buflen,
ret);
} }
return ret; return ret;