From 9b86293dcec34ab346ca335151c4bffe29f5fcac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 22 Sep 2009 19:33:34 +0000 Subject: [PATCH] [freeldr] Move definition of maximum number of available file descriptors to fs.h Fix typos svn path=/trunk/; revision=43114 --- reactos/boot/freeldr/freeldr/fs/fs.c | 7 ++++--- reactos/boot/freeldr/freeldr/include/fs.h | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/fs/fs.c b/reactos/boot/freeldr/freeldr/fs/fs.c index 24fcae1082d..7026a06e193 100644 --- a/reactos/boot/freeldr/freeldr/fs/fs.c +++ b/reactos/boot/freeldr/freeldr/fs/fs.c @@ -163,7 +163,7 @@ ULONG FsGetNumPathParts(PCSTR Path) } num++; - DPRINTM(DPRINT_FILESYSTEM, "FatGetNumPathParts() Path = %s NumPathParts = %d\n", Path, num); + DPRINTM(DPRINT_FILESYSTEM, "FsGetNumPathParts() Path = %s NumPathParts = %d\n", Path, num); return num; } @@ -195,10 +195,9 @@ VOID FsGetFirstNameFromPath(PCHAR Buffer, PCSTR Path) Buffer[i] = 0; - DPRINTM(DPRINT_FILESYSTEM, "FatGetFirstNameFromPath() Path = %s FirstName = %s\n", Path, Buffer); + DPRINTM(DPRINT_FILESYSTEM, "FsGetFirstNameFromPath() Path = %s FirstName = %s\n", Path, Buffer); } -#define MAX_FDS 60 typedef struct tagFILEDATA { ULONG DeviceId; @@ -398,6 +397,8 @@ VOID FsRegisterDevice(CHAR* Prefix, const DEVVTBL* FuncTable) DEVICE* pNewEntry; ULONG dwLength; + DPRINTM(DPRINT_FILESYSTEM, "FsRegisterDevice() Prefix = %s\n", Prefix); + dwLength = strlen(Prefix) + 1; pNewEntry = MmHeapAlloc(sizeof(DEVICE) + dwLength); if (!pNewEntry) diff --git a/reactos/boot/freeldr/freeldr/include/fs.h b/reactos/boot/freeldr/freeldr/include/fs.h index 47362b88c7e..88da935bc6b 100644 --- a/reactos/boot/freeldr/freeldr/include/fs.h +++ b/reactos/boot/freeldr/freeldr/include/fs.h @@ -57,4 +57,6 @@ VOID FsSetFilePointer(PFILE FileHandle, ULONG NewFilePointer); ULONG FsGetNumPathParts(PCSTR Path); VOID FsGetFirstNameFromPath(PCHAR Buffer, PCSTR Path); +#define MAX_FDS 60 + #endif // #defined __FS_H