]> mj.ucw.cz Git - pciutils.git/commit
Improve large BAR display
authorMatthew Wilcox <matthew@wil.cx>
Fri, 20 Nov 2009 21:30:50 +0000 (14:30 -0700)
committerMartin Mares <mj@ucw.cz>
Sun, 22 Nov 2009 17:16:39 +0000 (18:16 +0100)
commitf2f8adaa9955cf4e5188075d8eb452a7f6e268c6
treecad6f1c73fefef980cceb0662184b5ae2e7cc7a4
parent0494e6603fb95ecacb2f05233008e2c268eea6ac
Improve large BAR display

lspci currently displays anything larger than 2GB as a raw number.
I have a device with a larger BAR and wanted to see that reported as
a multiple of a GB.

I took the opportunity to rewrite this routine to make it easier to add
higher powers in the future.  It's also slightly shorter, which is nice.
I also changed it to use the binary prefixes, much as I dislike them
personally.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
lspci.c