-static int
-compound_name(struct pci_access *a, int num, char *buf, int size, int cat, int v, int i)
-{
- if (!num)
- {
- struct nl_entry *e, *e2;
-
- e = nl_lookup(a, 0, cat, v, 0);
- e2 = nl_lookup(a, 0, cat+1, v, i);
- if (!e)
- return snprintf(buf, size, "Unknown device %04x:%04x", v, i);
- else if (!e2)
- return snprintf(buf, size, "%s: Unknown device %04x", e->name, i);
- else
- return snprintf(buf, size, "%s %s", e->name, e2->name);
- }
- else
- return snprintf(buf, size, "%04x:%04x", v, i);
-}
-