[flashrom] [PATCH] Add support for libpci older than 2.2

Michael Karcher flashrom at mkarcher.dialup.fu-berlin.de
Sat Jul 17 18:07:06 CEST 2010


Am Samstag, den 17.07.2010, 16:47 +0200 schrieb Carl-Daniel Hailfinger:
> +#if PCI_LIB_VERSION >= 0x020200
>  		dev = pci_get_dev(pacc, dev->domain, dev->bus, dev->dev, 1);
> +#else
> +		/* libpci before 2.2 */
> +		msg_pinfo("Your pciutils/libpci version is too old to support "
> +			  "PCI domains. Continuing anyway.\n");
If a system needs PCI domain support, you can be pretty sure that a
newer libpci is installed, because even lspci would not work correctly
as far as I can tell. So I think anyone still having libpci < 2.2 never
heard of PCI domains and so we don't need to confuse the user with a
message containing a technical term he is not going to understand. Kill
this message. You can make it a comment - the source code reader might
wonder why it works without the parameter.

Regards,
  Michael Karcher





More information about the flashrom mailing list