diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-04 19:10:42 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-04 19:10:42 +0000 |
commit | 10d918317ccdb4fbd63a076e20208a71c86559dd (patch) | |
tree | cedb1a8aeea9ad2961e883c0228d97d6d5a9ed7b | |
parent | d7939461d738f1d4cfe45e383c7ead92d863450a (diff) |
format string fixes: size_t and uint16_t
ok bluhm@
-rw-r--r-- | sys/netinet/ip_output.c | 4 | ||||
-rw-r--r-- | sys/netinet6/ip6_forward.c | 4 | ||||
-rw-r--r-- | sys/netinet6/ip6_output.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index b59accf5569..e0e6b7d73f3 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.242 2013/06/26 09:12:40 henning Exp $ */ +/* $OpenBSD: ip_output.c,v 1.243 2013/07/04 19:10:40 sf Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -267,7 +267,7 @@ reroute: if (mtag != NULL) { #ifdef DIAGNOSTIC if (mtag->m_tag_len != sizeof (struct tdb_ident)) - panic("ip_output: tag of length %d (should be %d", + panic("ip_output: tag of length %hu (should be %zu", mtag->m_tag_len, sizeof (struct tdb_ident)); #endif tdbi = (struct tdb_ident *)(mtag + 1); diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c index 6d7f9712840..4e2e45918da 100644 --- a/sys/netinet6/ip6_forward.c +++ b/sys/netinet6/ip6_forward.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_forward.c,v 1.59 2013/06/26 09:12:40 henning Exp $ */ +/* $OpenBSD: ip6_forward.c,v 1.60 2013/07/04 19:10:41 sf Exp $ */ /* $KAME: ip6_forward.c,v 1.75 2001/06/29 12:42:13 jinmei Exp $ */ /* @@ -160,7 +160,7 @@ reroute: if (mtag != NULL) { #ifdef DIAGNOSTIC if (mtag->m_tag_len != sizeof (struct tdb_ident)) - panic("ip6_forward: tag of length %d (should be %d", + panic("ip6_forward: tag of length %hu (should be %zu", mtag->m_tag_len, sizeof (struct tdb_ident)); #endif tdbi = (struct tdb_ident *)(mtag + 1); diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index f405b3162bf..d9a11ce4165 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_output.c,v 1.141 2013/06/26 09:12:40 henning Exp $ */ +/* $OpenBSD: ip6_output.c,v 1.142 2013/07/04 19:10:41 sf Exp $ */ /* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */ /* @@ -232,7 +232,7 @@ ip6_output(struct mbuf *m0, struct ip6_pktopts *opt, struct route_in6 *ro, if (mtag != NULL) { #ifdef DIAGNOSTIC if (mtag->m_tag_len != sizeof (struct tdb_ident)) - panic("ip6_output: tag of length %d (should be %d", + panic("ip6_output: tag of length %hu (should be %zu", mtag->m_tag_len, sizeof (struct tdb_ident)); #endif tdbi = (struct tdb_ident *)(mtag + 1); |