. clarify panic messages in syslib about pci
. use ds_retrieve_u32 instead of _pm_findproc
This commit is contained in:
@@ -37,7 +37,7 @@ u16_t did;
|
||||
r= sendrec(pci_procnr, &m);
|
||||
cpf_revoke(gid);
|
||||
if (r != 0)
|
||||
panic("pci", "pci_dev_name: can't talk to PCI", r);
|
||||
panic("syslib/" __FILE__, "pci_dev_name: can't talk to PCI", r);
|
||||
|
||||
if (m.m_type == ENOENT)
|
||||
{
|
||||
@@ -45,7 +45,7 @@ u16_t did;
|
||||
return NULL; /* No name for this device */
|
||||
}
|
||||
if (m.m_type != 0)
|
||||
panic("pci", "pci_dev_name: got bad reply from PCI", m.m_type);
|
||||
panic("syslib/" __FILE__, "pci_dev_name: got bad reply from PCI", m.m_type);
|
||||
|
||||
name[sizeof(name)-1]= '\0'; /* Make sure that the string is NUL
|
||||
* terminated.
|
||||
|
||||
Reference in New Issue
Block a user