diff options
author | jhb <jhb@FreeBSD.org> | 2005-12-15 21:57:32 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-12-15 21:57:32 +0000 |
commit | 3acb3374d90ccc6bbee326f0f1f72fb3b87d2b96 (patch) | |
tree | b3e36f4bb58bf3e3589e957a42df138b7fcf7d97 /sys/netinet/ip_mroute.c | |
parent | 9d17e4c81eb19eff99e7b1fec70b8667e60355c6 (diff) | |
download | FreeBSD-src-3acb3374d90ccc6bbee326f0f1f72fb3b87d2b96.zip FreeBSD-src-3acb3374d90ccc6bbee326f0f1f72fb3b87d2b96.tar.gz |
Use %t (ptrdiff_t modifier) to print a couple of pointer differences rather
than casting them to int.
Diffstat (limited to 'sys/netinet/ip_mroute.c')
-rw-r--r-- | sys/netinet/ip_mroute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index c50466f..fc7d6a2 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -2133,8 +2133,8 @@ tbf_send_packet(struct vif *vifp, struct mbuf *m) error = ip_output(m, NULL, &ro, IP_FORWARDING, &imo, NULL); if (mrtdebug & DEBUG_XMIT) - log(LOG_DEBUG, "phyint_send on vif %d err %d\n", - (int)(vifp - viftable), error); + log(LOG_DEBUG, "phyint_send on vif %td err %d\n", + vifp - viftable, error); } } |