Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2013 19:35:40 +0000 (UTC)
From:      Neel Natu <neel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246632 - head/usr.sbin/pciconf
Message-ID:  <201302101935.r1AJZeok083861@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302101935.r1AJZeok083861>