2006-03-21 Martin Mares <mj@ucw.cz>
+ * lspci.c (show_slot_name): Avoid the previous changes in default
+ display of domain name when in machine-readable mode. However, `-D'
+ forces domain display even there.
+
* lspci.man: Added a warning on -m being the only format, which is
guaranteed to be stable between lspci versions.
- finish PCI-X 2.0 capabilities
- finish PCI Express support
- reading of VPD
-- change machine-readable output?
- class 0805?
+- document syntax of machine-readable output
PCIIDS:
- another mirror at Atrey?
static int show_tree; /* Show bus tree */
static int machine_readable; /* Generate machine-readable output */
static int map_mode; /* Bus mapping mode enabled */
-static int show_domains; /* Show domain numbers */
+static int show_domains; /* Show domain numbers (0=disabled, 1=auto-detected, 2=requested) */
static char options[] = "nvbxs:d:ti:mgMD" GENERIC_OPTIONS ;
{
struct pci_dev *p = d->dev;
- if (show_domains)
+ if (!machine_readable ? show_domains : (p->domain || show_domains >= 2))
printf("%04x:", p->domain);
printf("%02x:%02x.%d", p->bus, p->dev, p->func);
}
map_mode++;
break;
case 'D':
- show_domains = 1;
+ show_domains = 2;
break;
default:
if (parse_generic_option(i, pacc, optarg))