From owner-svn-src-head@FreeBSD.ORG Sun Feb 10 19:35:40 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F03B5BA9; Sun, 10 Feb 2013 19:35:40 +0000 (UTC) (envelope-from neel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id D7CC4EBE; Sun, 10 Feb 2013 19:35:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1AJZeMS083863; Sun, 10 Feb 2013 19:35:40 GMT (envelope-from neel@svn.freebsd.org) Received: (from neel@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1AJZeok083861; Sun, 10 Feb 2013 19:35:40 GMT (envelope-from neel@svn.freebsd.org) Message-Id: <201302101935.r1AJZeok083861@svn.freebsd.org> From: Neel Natu Date: Sun, 10 Feb 2013 19:35:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r246632 - head/usr.sbin/pciconf 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.14 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: Sun, 10 Feb 2013 19:35:41 -0000 Author: neel Date: Sun Feb 10 19:35:40 2013 New Revision: 246632 URL: http://svnweb.freebsd.org/changeset/base/246632 Log: Use the entire 64 bits of 'bar.pbi_length' when printing the bar size. This allows bar sizes greater than or equal to 4GB to be displayed correctly. Modified: head/usr.sbin/pciconf/pciconf.c Modified: head/usr.sbin/pciconf/pciconf.c ============================================================================== --- head/usr.sbin/pciconf/pciconf.c Sun Feb 10 19:32:55 2013 (r246631) +++ head/usr.sbin/pciconf/pciconf.c Sun Feb 10 19:35:40 2013 (r246632) @@ -290,7 +290,7 @@ list_bars(int fd, struct pci_conf *p) } printf(" bar [%02x] = type %s, range %2d, base %#jx, ", PCIR_BAR(i), type, range, (uintmax_t)base); - printf("size %2d, %s\n", (int)bar.pbi_length, + printf("size %ju, %s\n", (uintmax_t)bar.pbi_length, bar.pbi_enabled ? "enabled" : "disabled"); } }