diff options
author | jb <jb@FreeBSD.org> | 2007-11-17 23:09:39 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2007-11-17 23:09:39 +0000 |
commit | ee4b9334d134a020a5a2e551d381f0c13625afb8 (patch) | |
tree | 64394ea5b65375684b3e02d0cb41e4fb408aff2e | |
parent | d1ab859bdce52e381ae74e98a1e951e839b6726f (diff) | |
download | FreeBSD-src-ee4b9334d134a020a5a2e551d381f0c13625afb8.zip FreeBSD-src-ee4b9334d134a020a5a2e551d381f0c13625afb8.tar.gz |
Use printf formats which match the variable types without casts so we
can go back to using -Werror in higher WARNS levels.
-rw-r--r-- | usr.sbin/IPXrouted/trace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/IPXrouted/trace.c b/usr.sbin/IPXrouted/trace.c index f1f86fa..d9e74b8 100644 --- a/usr.sbin/IPXrouted/trace.c +++ b/usr.sbin/IPXrouted/trace.c @@ -363,8 +363,8 @@ dumppacket(fd, dir, source, cp, size) fprintf(fd, "Bad cmd 0x%x %s %s#%x\n", ntohs(msg->rip_cmd), dir, ipxdp_ntoa(&who->sipx_addr), ntohs(who->sipx_addr.x_port)); - fprintf(fd, "size=%d cp=%lx packet=%x\n", size, - (u_long)cp, (u_int)packet); + fprintf(fd, "size=%d cp=%p packet=%p\n", size, + cp, packet); return; } switch (ntohs(msg->rip_cmd)) { @@ -407,8 +407,8 @@ dumpsappacket(fd, dir, source, cp, size) fprintf(fd, "Bad cmd 0x%x %s %s#%x\n", ntohs(msg->sap_cmd), dir, ipxdp_ntoa(&who->sipx_addr), ntohs(who->sipx_addr.x_port)); - fprintf(fd, "size=%d cp=%lx packet=%x\n", size, - (u_long)cp, (u_int)packet); + fprintf(fd, "size=%d cp=%p packet=%p\n", size, + cp, packet); return; } switch (ntohs(msg->sap_cmd)) { |