Re: [PCIUTILS PATCH] Improve large BAR display

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

> 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.

The general routine is better, but the binary prefixes are too ugly and
too long. I have applied the patch and changed "KiB" to plain "K" etc.

				Have a nice fortnight
-- 
Martin `MJ' Mares                          <mj@xxxxxx>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Light-year? One-third less calories than a regular year.
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux