mirror of https://gitee.com/openkylin/linux.git
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:
parent
867047c451
commit
4a2176c63b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue