From owner-svn-src-head@FreeBSD.ORG Fri Dec 16 15:55:43 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1B66106566B; Fri, 16 Dec 2011 15:55:43 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E04A78FC1B; Fri, 16 Dec 2011 15:55:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pBGFthVA014571; Fri, 16 Dec 2011 15:55:43 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pBGFthQQ014569; Fri, 16 Dec 2011 15:55:43 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201112161555.pBGFthQQ014569@svn.freebsd.org> From: Dimitry Andric Date: Fri, 16 Dec 2011 15:55:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228584 - head/libexec/bootpd/tools/bootptest X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2011 15:55:44 -0000 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). */