projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
867047c
)
netvsc: don't print pointer value in error message
author
stephen hemminger
<stephen@networkplumber.org>
Fri, 28 Jul 2017 15:59:43 +0000
(08:59 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sat, 29 Jul 2017 22:25:43 +0000
(15:25 -0700)
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>
drivers/net/hyperv/netvsc.c
patch
|
blob
|
history
diff --git
a/drivers/net/hyperv/netvsc.c
b/drivers/net/hyperv/netvsc.c
index 94c00acac58a50ba1b995a7db0000e490210ac40..f0c15e782ce0a66da1d423ca37f1fadc1ccb8cce 100644
(file)
--- 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;