Date: Fri, 16 Dec 2011 15:55:43 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r228584 - head/libexec/bootpd/tools/bootptest Message-ID: <201112161555.pBGFthQQ014569@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Fri Dec 16 15:55:43 2011 New Revision: 228584 URL: http://svn.freebsd.org/changeset/base/228584 Log: In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf length modifier for the difference between two pointers. MFC after: 1 week Modified: head/libexec/bootpd/tools/bootptest/print-bootp.c Modified: head/libexec/bootpd/tools/bootptest/print-bootp.c ============================================================================== --- head/libexec/bootpd/tools/bootptest/print-bootp.c Fri Dec 16 15:47:43 2011 (r228583) +++ head/libexec/bootpd/tools/bootptest/print-bootp.c Fri Dec 16 15:55:43 2011 (r228584) @@ -310,7 +310,7 @@ rfc1048_print(bp, length) len = *bp++; if (bp + len > ep) { /* truncated option */ - printf(" |(%d>%d)", len, ep - bp); + printf(" |(%d>%td)", len, ep - bp); return; } /* Print the option value(s). */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112161555.pBGFthQQ014569>