Hello!
On Sun, Jul 30, 2006 at 01:28:39PM +0200, Martin Mares wrote:
> > The attached patch is needed to make the pciutils package usable on
> > GNU/Hurd systems with the current Debian gnumach kernel packages.
>
> I've merged the patch and cleaned it up considerably.
>
> Could you please test that it still works? (It's in the public GIT tree
> and also in the 2.2.4-pre3 release.)
If you apply the attached pciutils-warning.patch, it compiles and then
even works. :-)
Thanks!
Regards,
Thomas
diff --git a/lib/i386-io-hurd.h b/lib/i386-io-hurd.h
index 99db104..334ce0a 100644
--- a/lib/i386-io-hurd.h
+++ b/lib/i386-io-hurd.h
@@ -25,15 +25,15 @@ intel_setup_io(struct pci_access *a)
mach_port_t device;
if ((errno = get_privileged_ports(NULL, &device)))
- a->warn("i386-io-hurd: Can't get_privileged_ports(): %m");
+ a->warning("i386-io-hurd: Can't get_privileged_ports(): %m");
if (!errno && (errno = device_open(device, D_READ | D_WRITE, "io",
&io_port)))
- a->warn("i386-io-hurd: Can't device_open(): %m");
+ a->warning("i386-io-hurd: Can't device_open(): %m");
mach_port_deallocate(mach_task_self(), device);
if (!errno && (errno = i386_io_port_add(mach_thread_self(), io_port)))
- a->warn("i386-io-hurd: Can't i386_io_port_add(): %m");
+ a->warning("i386-io-hurd: Can't i386_io_port_add(): %m");
return errno ? 0 : 1;
}
@@ -42,7 +42,7 @@ static inline int
intel_cleanup_io(struct pci_access *a)
{
if ((errno = i386_io_port_remove(mach_thread_self(), io_port)))
- a->warn("i386-io-hurd: Can't i386_io_port_remove(): %m");
+ a->warning("i386-io-hurd: Can't i386_io_port_remove(): %m");
mach_port_deallocate(mach_task_self(), io_port);