X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fproc.c;h=f493e491e771684c0ebd0e87843d3319bf89f7cb;hb=dc01dd60affb4688453f8b7204af66246f0850db;hp=9d02b4107d5dc9781c2b4bb10556c63d0ecce655;hpb=098174370094ba8c31f86bd9faed3796dcaeb1db;p=pciutils.git diff --git a/lib/proc.c b/lib/proc.c index 9d02b41..f493e49 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -21,7 +21,7 @@ static void proc_config(struct pci_access *a) { - a->method_params[PCI_ACCESS_PROC_BUS_PCI] = PATH_PROC_BUS_PCI; + a->method_params[PCI_ACCESS_PROC_BUS_PCI] = PCI_PATH_PROC_BUS_PCI; } static int @@ -153,7 +153,7 @@ proc_read(struct pci_dev *d, int pos, byte *buf, int len) return 0; } else if (res != len) - d->access->warning("proc_read: tried to read %d bytes at %d, but got only %d", len, pos, res); + return 0; return 1; }