]> mj.ucw.cz Git - pciutils.git/commitdiff
Shorten BAR size suffixes
authorMartin Mares <mj@ucw.cz>
Sun, 22 Nov 2009 17:18:31 +0000 (18:18 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 22 Nov 2009 17:18:31 +0000 (18:18 +0100)
`[size=2MiB]' looks too ugly and too long. Replaced by `[size=2M]'.

lspci.c

diff --git a/lspci.c b/lspci.c
index ce00316923df3b089bd2d1cc0cc666b9998777e0..54317cf5002f3395b8fad76ca0ce87bc88dfafa5 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -330,7 +330,7 @@ show_terse(struct device *d)
 static void
 show_size(pciaddr_t x)
 {
-  static const char suffix[][4] = { "", "KiB", "MiB", "GiB", "TiB" };
+  static const char suffix[][2] = { "", "K", "M", "G", "T" };
   unsigned i;
   if (!x)
     return;