From owner-svn-src-head@freebsd.org Fri Jan 6 00:41:31 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8992C9FB2D; Fri, 6 Jan 2017 00:41:31 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A886B1EDA; Fri, 6 Jan 2017 00:41:31 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v060fUrv077974; Fri, 6 Jan 2017 00:41:30 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v060fUOb077973; Fri, 6 Jan 2017 00:41:30 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201701060041.v060fUOb077973@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Fri, 6 Jan 2017 00:41:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r311464 - head/sys/mips/mips X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 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, 06 Jan 2017 00:41:31 -0000 Author: jhb Date: Fri Jan 6 00:41:30 2017 New Revision: 311464 URL: https://svnweb.freebsd.org/changeset/base/311464 Log: Add uintmax_t casts to silence printf format warnings. The format strings weren't checked when stacksave_subr() used a function pointer for printf instead of directly using db_printf(). Reported by: kib Sponsored by: DARPA / AFRL Modified: head/sys/mips/mips/db_trace.c Modified: head/sys/mips/mips/db_trace.c ============================================================================== --- head/sys/mips/mips/db_trace.c Fri Jan 6 00:07:36 2017 (r311463) +++ head/sys/mips/mips/db_trace.c Fri Jan 6 00:41:30 2017 (r311464) @@ -117,7 +117,7 @@ loop: /* Check for bad SP: could foul up next frame. */ if (!MIPS_IS_VALID_KERNELADDR(sp)) { - db_printf("SP 0x%jx: not in kernel\n", sp); + db_printf("SP 0x%jx: not in kernel\n", (uintmax_t)sp); ra = 0; subr = 0; goto done; @@ -162,7 +162,7 @@ loop: /* Check for bad PC. */ if (!MIPS_IS_VALID_KERNELADDR(pc)) { - db_printf("PC 0x%jx: not in kernel\n", pc); + db_printf("PC 0x%jx: not in kernel\n", (uintmax_t)pc); ra = 0; goto done; }