/*
* The PCI Utilities -- Common Functions
*
- * Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
+ * Copyright (c) 1997--2006 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
va_list args;
va_start(args, msg);
- fputs("lspci: ", stderr);
+ fprintf(stderr, "%s: ", program_name);
vfprintf(stderr, msg, args);
fputc('\n', stderr);
exit(1);
{
switch (i)
{
-#ifdef HAVE_PM_LINUX_PROC
+#ifdef PCI_HAVE_PM_LINUX_PROC
case 'P':
pacc->method_params[PCI_ACCESS_PROC_BUS_PCI] = optarg;
pacc->method = PCI_ACCESS_PROC_BUS_PCI;
break;
#endif
-#ifdef HAVE_PM_INTEL_CONF
+#ifdef PCI_HAVE_PM_INTEL_CONF
case 'H':
if (!strcmp(optarg, "1"))
pacc->method = PCI_ACCESS_I386_TYPE1;
die("Unknown hardware configuration type %s", optarg);
break;
#endif
-#ifdef HAVE_PM_DUMP
+#ifdef PCI_HAVE_PM_DUMP
case 'F':
pacc->method_params[PCI_ACCESS_DUMP] = optarg;
pacc->method = PCI_ACCESS_DUMP;