svn commit: r228584 - head/libexec/bootpd/tools/bootptest
Dimitry Andric
dim at FreeBSD.org
Fri Dec 16 15:55:44 UTC 2011
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). */
More information about the svn-src-all
mailing list