netvsc: don't print pointer value in error message
authorstephen hemminger <stephen@networkplumber.org>
Fri, 28 Jul 2017 15:59:43 +0000 (08:59 -0700)
committerDavid 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

index 94c00acac58a50ba1b995a7db0000e490210ac40..f0c15e782ce0a66da1d423ca37f1fadc1ccb8cce 100644 (file)
@@ -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;