X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fdrv%2Fpci.c;h=43d6d544299cd6918693131a27c9e2ed2e7e1a83;hb=d1f16adf5f2e94e836ea6658186a6ff6d94f54d8;hp=59a7d7710b1dd1d0823b4c8a87bb4eb93978b801;hpb=ca0848c2f5fddc9c45e2a715b2a4e4d54f2a273d;p=tpg%2Facess2.git diff --git a/Kernel/drv/pci.c b/Kernel/drv/pci.c index 59a7d771..43d6d544 100644 --- a/Kernel/drv/pci.c +++ b/Kernel/drv/pci.c @@ -1,13 +1,13 @@ /* -AcessOS/AcessBasic v0.1 -PCI Bus Driver -*/ + * AcessOS/AcessBasic v0.1 + * PCI Bus Driver + */ +#define DEBUG 0 #include #include #include #include -#define DEBUG 0 #define LIST_DEVICES 1 // === STRUCTURES === @@ -167,7 +167,7 @@ char *PCI_ReadDirRoot(tVFS_Node *Node, int Pos) return NULL; } - LEAVE('%s', gPCI_Devices[Pos].Name); + LEAVE('s', gPCI_Devices[Pos].Name); return strdup( gPCI_Devices[Pos].Name ); } /** @@ -468,7 +468,7 @@ int PCI_EnumDevice(Uint16 bus, Uint16 slot, Uint16 fcn, t_pciDevice *info) info->Name[2] = '.'; info->Name[3] = '0' + slot/10; info->Name[4] = '0' + slot%10; - info->Name[5] = '.'; + info->Name[5] = ':'; info->Name[6] = '0' + fcn; info->Name[7] = '\0';