From owner-svn-src-stable@FreeBSD.ORG Sat Dec 31 19:36:12 2011 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15F8F106566B; Sat, 31 Dec 2011 19:36:12 +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 F3B3B8FC19; Sat, 31 Dec 2011 19:36:11 +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 pBVJaBb6079464; Sat, 31 Dec 2011 19:36:11 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pBVJaB4N079462; Sat, 31 Dec 2011 19:36:11 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201112311936.pBVJaB4N079462@svn.freebsd.org> From: Dimitry Andric Date: Sat, 31 Dec 2011 19:36:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r229140 - stable/9/libexec/rbootd X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2011 19:36:12 -0000 Author: dim Date: Sat Dec 31 19:36:11 2011 New Revision: 229140 URL: http://svn.freebsd.org/changeset/base/229140 Log: MFC r228587: In libexec/rbootd/utils.c, use the correct printf length modifiers for u_int32_t and size_t. Modified: stable/9/libexec/rbootd/utils.c Directory Properties: stable/9/libexec/rbootd/ (props changed) Modified: stable/9/libexec/rbootd/utils.c ============================================================================== --- stable/9/libexec/rbootd/utils.c Sat Dec 31 19:34:25 2011 (r229139) +++ stable/9/libexec/rbootd/utils.c Sat Dec 31 19:36:11 2011 (r229140) @@ -82,8 +82,8 @@ static const char rcsid[] = void DispPkt(RMPCONN *rconn, int direct) { - static const char BootFmt[] = "\t\tRetCode:%u SeqNo:%lx SessID:%x Vers:%u"; - static const char ReadFmt[] = "\t\tRetCode:%u Offset:%lx SessID:%x\n"; + static const char BootFmt[] = "\t\tRetCode:%u SeqNo:%x SessID:%x Vers:%u"; + static const char ReadFmt[] = "\t\tRetCode:%u Offset:%x SessID:%x\n"; struct tm *tmp; struct rmp_packet *rmp; @@ -166,7 +166,7 @@ DispPkt(RMPCONN *rconn, int direct) GETWORD(rmp->r_rrpl.rmp_offset, t); (void) fprintf(DbgFp, ReadFmt, rmp->r_rrpl.rmp_retcode, t, ntohs(rmp->r_rrpl.rmp_session)); - (void) fprintf(DbgFp, "\t\tNoOfBytesSent: %d\n", + (void) fprintf(DbgFp, "\t\tNoOfBytesSent: %zu\n", rconn->rmplen - RMPREADSIZE(0)); break; case RMP_BOOT_DONE: /* boot complete */