1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Bah, just use %zu for printing size_t.

This commit is contained in:
Mike Barcroft 2003-01-06 16:31:39 +00:00
parent c4f6613446
commit f08294ced0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108797

View File

@ -975,8 +975,8 @@ check_ip6fw_mbuf(struct mbuf *m)
{
/* Check length */
if (m->m_len != sizeof(struct ip6_fw)) {
dprintf(("%s len=%d, want %d\n", err_prefix, m->m_len,
(int)sizeof(struct ip6_fw)));
dprintf(("%s len=%d, want %zu\n", err_prefix, m->m_len,
sizeof(struct ip6_fw)));
return (NULL);
}
return(check_ip6fw_struct(mtod(m, struct ip6_fw *)));
@ -1192,8 +1192,8 @@ ip6_fw_ctl(int stage, struct mbuf **mm)
}
if (stage == IPV6_FW_DEL) {
if (m->m_len != sizeof(struct ip6_fw)) {
dprintf(("%s len=%d, want %d\n", err_prefix, m->m_len,
(int)sizeof(struct ip6_fw)));
dprintf(("%s len=%d, want %zu\n", err_prefix, m->m_len,
sizeof(struct ip6_fw)));
error = EINVAL;
} else if (mtod(m, struct ip6_fw *)->fw_number == (u_short)-1) {
dprintf(("%s can't delete rule 65535\n", err_prefix));