From owner-svn-src-head@FreeBSD.ORG Tue Dec 2 15:08:33 2008 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 AA83D1065678; Tue, 2 Dec 2008 15:08:33 +0000 (UTC) (envelope-from peter@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 869E28FC20; Tue, 2 Dec 2008 15:08:33 +0000 (UTC) (envelope-from peter@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mB2F8XF3063722; Tue, 2 Dec 2008 15:08:33 GMT (envelope-from peter@svn.freebsd.org) Received: (from peter@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mB2F8X76063721; Tue, 2 Dec 2008 15:08:33 GMT (envelope-from peter@svn.freebsd.org) Message-Id: <200812021508.mB2F8X76063721@svn.freebsd.org> From: Peter Wemm Date: Tue, 2 Dec 2008 15:08:33 +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: r185563 - head/usr.bin/procstat 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: Tue, 02 Dec 2008 15:08:33 -0000 Author: peter Date: Tue Dec 2 15:08:33 2008 New Revision: 185563 URL: http://svn.freebsd.org/changeset/base/185563 Log: Update format string for kve_start/end. Modified: head/usr.bin/procstat/procstat_vm.c Modified: head/usr.bin/procstat/procstat_vm.c ============================================================================== --- head/usr.bin/procstat/procstat_vm.c Tue Dec 2 14:57:48 2008 (r185562) +++ head/usr.bin/procstat/procstat_vm.c Tue Dec 2 15:08:33 2008 (r185563) @@ -34,6 +34,7 @@ #include #include #include +#include #include #include "procstat.h" @@ -56,8 +57,8 @@ procstat_vm(pid_t pid, struct kinfo_proc for (i = 0; i < cnt; i++) { kve = &freep[i]; printf("%5d ", pid); - printf("%*p ", ptrwidth, kve->kve_start); - printf("%*p ", ptrwidth, kve->kve_end); + printf("%#*jx ", ptrwidth, (uintmax_t)kve->kve_start); + printf("%#*jx ", ptrwidth, (uintmax_t)kve->kve_end); printf("%s", kve->kve_protection & KVME_PROT_READ ? "r" : "-"); printf("%s", kve->kve_protection & KVME_PROT_WRITE ? "w" : "-"); printf("%s ", kve->kve_protection & KVME_PROT_EXEC ? "x" : "-");