pacc->buscentric = 1;
break;
case 's':
+ if (pci_filter_has_slot(&filter))
+ fprintf(stderr, "Multiple -s options are given, only the last one has effect.\n");
if (msg = pci_filter_parse_slot(&filter, optarg))
die("-s: %s", msg);
opt_filter = 1;
break;
case 'd':
+ if (pci_filter_has_id(&filter))
+ fprintf(stderr, "Multiple -d options are given, only the last one has effect.\n");
if (msg = pci_filter_parse_id(&filter, optarg))
die("-d: %s", msg);
opt_filter = 1;
switch (c[1])
{
case 's':
+ if (pci_filter_has_slot(&group->filter))
+ fprintf(stderr, "Multiple -s options are given, only the last one has effect.\n");
if (d = pci_filter_parse_slot(&group->filter, d))
parse_err("Unable to parse filter -s %s", d);
break;
case 'd':
+ if (pci_filter_has_id(&group->filter))
+ fprintf(stderr, "Multiple -d options are given, only the last one has effect.\n");
if (d = pci_filter_parse_id(&group->filter, d))
parse_err("Unable to parse filter -d %s", d);
break;