]> mj.ucw.cz Git - pciutils.git/commitdiff
Added a `-vmm' mode.
authorMartin Mares <mj@ucw.cz>
Sat, 9 Sep 2006 12:28:40 +0000 (14:28 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 9 Sep 2006 12:28:40 +0000 (14:28 +0200)
ChangeLog
lspci.c

index b18fd90bc4c623231b462ece155ea6729c5dd533..bc35fd5c272578f36888db4d6510dd5e3126cc95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-09-09  Martin Mares  <mj@ucw.cz>
 
+       * lspci.c (show_machine): Added a `-vmm' mode, which removes the misuse
+       of the `Device' tag for two different purposes.
+
        * Makefile: Moved all system-dependent decisions to lib/configure,
        since config.mk is included in the top-level Makefile anyway.
 
diff --git a/lspci.c b/lspci.c
index a5eca9189053e4bd41cf284eba5f7d518379e3de..514e717cf15c2f1d81a66d5fd1a85a1a9deaf6a7 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -1826,7 +1826,7 @@ show_machine(struct device *d)
 
   if (verbose)
     {
-      printf("Device:\t");
+      printf((machine_readable >= 2) ? "Slot:\t" : "Device:\t");
       show_slot_name(d);
       putchar('\n');
       printf("Class:\t%s\n",