Date: Mon, 6 Jun 2011 10:51:00 +0000 (UTC) From: Hiroki Sato <hrs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r222743 - head/usr.sbin/rtadvd Message-ID: <201106061051.p56Ap0FN027659@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hrs Date: Mon Jun 6 10:51:00 2011 New Revision: 222743 URL: http://svn.freebsd.org/changeset/base/222743 Log: Fix build on 64-bit arch. Submitted by: dim Pointy hat to: hrs Modified: head/usr.sbin/rtadvd/config.c head/usr.sbin/rtadvd/dump.c head/usr.sbin/rtadvd/rtadvd.c Modified: head/usr.sbin/rtadvd/config.c ============================================================================== --- head/usr.sbin/rtadvd/config.c Mon Jun 6 10:39:38 2011 (r222742) +++ head/usr.sbin/rtadvd/config.c Mon Jun 6 10:51:00 2011 (r222743) @@ -109,7 +109,7 @@ dname_labelenc(char *dst, const char *sr /* Always need a 0-length label at the tail. */ *dst++ = '\0'; - syslog(LOG_DEBUG, "<%s> labellen = %d", __func__, dst - dst_origin); + syslog(LOG_DEBUG, "<%s> labellen = %td", __func__, dst - dst_origin); return (dst - dst_origin); } Modified: head/usr.sbin/rtadvd/dump.c ============================================================================== --- head/usr.sbin/rtadvd/dump.c Mon Jun 6 10:39:38 2011 (r222742) +++ head/usr.sbin/rtadvd/dump.c Mon Jun 6 10:51:00 2011 (r222743) @@ -310,7 +310,7 @@ dname_labeldec(char *dst, size_t dlen, c (src + len) <= src_last) { if (dst != dst_origin) *dst++ = '.'; - syslog(LOG_DEBUG, "<%s> labellen = %d", __func__, len); + syslog(LOG_DEBUG, "<%s> labellen = %zd", __func__, len); memcpy(dst, src, len); src += len; dst += len; Modified: head/usr.sbin/rtadvd/rtadvd.c ============================================================================== --- head/usr.sbin/rtadvd/rtadvd.c Mon Jun 6 10:39:38 2011 (r222742) +++ head/usr.sbin/rtadvd/rtadvd.c Mon Jun 6 10:51:00 2011 (r222743) @@ -789,7 +789,7 @@ rtadvd_input(void) #else if ((size_t)i < sizeof(struct icmp6_hdr)) { syslog(LOG_ERR, - "<%s> packet size(%d) is too short", + "<%s> packet size(%zd) is too short", __func__, i); return; } @@ -827,7 +827,7 @@ rtadvd_input(void) if ((size_t)i < sizeof(struct nd_router_solicit)) { syslog(LOG_NOTICE, "<%s> RS from %s on %s does not have enough " - "length (len = %d)", + "length (len = %zd)", __func__, inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf, sizeof(ntopbuf)), @@ -873,7 +873,7 @@ rtadvd_input(void) if ((size_t)i < sizeof(struct nd_router_advert)) { syslog(LOG_NOTICE, "<%s> RA from %s on %s does not have enough " - "length (len = %d)", + "length (len = %zd)", __func__, inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf, sizeof(ntopbuf)),
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106061051.p56Ap0FN027659>