From: John Hodge Date: Sat, 26 Sep 2009 03:05:52 +0000 (+0800) Subject: Added debug to PCI X-Git-Tag: rel0.06~489 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ca0848c2f5fddc9c45e2a715b2a4e4d54f2a273d;p=tpg%2Facess2.git Added debug to PCI --- diff --git a/Kernel/drv/pci.c b/Kernel/drv/pci.c index 35977e12..59a7d771 100644 --- a/Kernel/drv/pci.c +++ b/Kernel/drv/pci.c @@ -156,15 +156,19 @@ int PCI_Install(char **Arguments) } /** - * \fn char *PCI_ReadDirRoot(tVFS_Node *node, int pos) + * \fn char *PCI_ReadDirRoot(tVFS_Node *Node, int Pos) * \brief Read from Root of PCI Driver */ -char *PCI_ReadDirRoot(tVFS_Node *node, int pos) -{ - if(pos < 0 || pos >= giPCI_DeviceCount) +char *PCI_ReadDirRoot(tVFS_Node *Node, int Pos) +{ + ENTER("pNode iPos", Node, Pos); + if(Pos < 0 || Pos >= giPCI_DeviceCount) { + LEAVE('n'); return NULL; + } - return strdup( gPCI_Devices[pos].Name ); + LEAVE('%s', gPCI_Devices[Pos].Name); + return strdup( gPCI_Devices[Pos].Name ); } /** * \fn tVFS_Node *PCI_FindDirRoot(tVFS_Node *node, char *filename)