diff --git a/boot/freeldr/freeldr/arch/i386/hardware.c b/boot/freeldr/freeldr/arch/i386/hardware.c index f8d628d2640..0cac33d4986 100644 --- a/boot/freeldr/freeldr/arch/i386/hardware.c +++ b/boot/freeldr/freeldr/arch/i386/hardware.c @@ -22,10 +22,8 @@ #include #include - DBG_DEFAULT_CHANNEL(HWDETECT); - #define MILLISEC (10) #define PRECISION (8) diff --git a/boot/freeldr/freeldr/arch/i386/hwacpi.c b/boot/freeldr/freeldr/arch/i386/hwacpi.c index 9a13c975d08..dcaad2d82df 100644 --- a/boot/freeldr/freeldr/arch/i386/hwacpi.c +++ b/boot/freeldr/freeldr/arch/i386/hwacpi.c @@ -19,8 +19,8 @@ */ #include -#include +#include DBG_DEFAULT_CHANNEL(HWDETECT); BOOLEAN AcpiPresent = FALSE; diff --git a/boot/freeldr/freeldr/arch/i386/hwapm.c b/boot/freeldr/freeldr/arch/i386/hwapm.c index f933224bea9..f3e64e27bd0 100644 --- a/boot/freeldr/freeldr/arch/i386/hwapm.c +++ b/boot/freeldr/freeldr/arch/i386/hwapm.c @@ -21,7 +21,6 @@ #include #include - DBG_DEFAULT_CHANNEL(HWDETECT); static BOOLEAN diff --git a/boot/freeldr/freeldr/arch/i386/hwpci.c b/boot/freeldr/freeldr/arch/i386/hwpci.c index c5aa14a1333..c4f0e97488c 100644 --- a/boot/freeldr/freeldr/arch/i386/hwpci.c +++ b/boot/freeldr/freeldr/arch/i386/hwpci.c @@ -21,7 +21,6 @@ #include #include - DBG_DEFAULT_CHANNEL(HWDETECT); FIND_PCI_BIOS FindPciBios = NULL; diff --git a/boot/freeldr/freeldr/arch/i386/i386vid.c b/boot/freeldr/freeldr/arch/i386/i386vid.c index 1138321fabb..67ee8010d02 100644 --- a/boot/freeldr/freeldr/arch/i386/i386vid.c +++ b/boot/freeldr/freeldr/arch/i386/i386vid.c @@ -20,7 +20,6 @@ #include #include - DBG_DEFAULT_CHANNEL(HWDETECT); #include diff --git a/boot/freeldr/freeldr/arch/i386/machpc.c b/boot/freeldr/freeldr/arch/i386/machpc.c index 1929be4a93e..aabe606220c 100644 --- a/boot/freeldr/freeldr/arch/i386/machpc.c +++ b/boot/freeldr/freeldr/arch/i386/machpc.c @@ -20,7 +20,6 @@ #include #include - DBG_DEFAULT_CHANNEL(HWDETECT); diff --git a/boot/freeldr/freeldr/arch/i386/machxbox.c b/boot/freeldr/freeldr/arch/i386/machxbox.c index 3fb951de1a6..c649622e968 100644 --- a/boot/freeldr/freeldr/arch/i386/machxbox.c +++ b/boot/freeldr/freeldr/arch/i386/machxbox.c @@ -19,7 +19,6 @@ #include #include - DBG_DEFAULT_CHANNEL(HWDETECT); diff --git a/boot/freeldr/freeldr/arch/i386/pcdisk.c b/boot/freeldr/freeldr/arch/i386/pcdisk.c index d371c44c99e..3d30f4e13b9 100644 --- a/boot/freeldr/freeldr/arch/i386/pcdisk.c +++ b/boot/freeldr/freeldr/arch/i386/pcdisk.c @@ -22,7 +22,6 @@ #include #include - DBG_DEFAULT_CHANNEL(DISK); #include diff --git a/boot/freeldr/freeldr/arch/i386/pcmem.c b/boot/freeldr/freeldr/arch/i386/pcmem.c index b3b5761d957..3fcab1f6a07 100644 --- a/boot/freeldr/freeldr/arch/i386/pcmem.c +++ b/boot/freeldr/freeldr/arch/i386/pcmem.c @@ -26,7 +26,6 @@ #include #include - DBG_DEFAULT_CHANNEL(MEMORY); #define ULONGLONG_ALIGN_DOWN_BY(size, align) \ diff --git a/boot/freeldr/freeldr/arch/i386/pcvideo.c b/boot/freeldr/freeldr/arch/i386/pcvideo.c index 7f21fc2c049..05252936545 100644 --- a/boot/freeldr/freeldr/arch/i386/pcvideo.c +++ b/boot/freeldr/freeldr/arch/i386/pcvideo.c @@ -20,6 +20,7 @@ #include #include +DBG_DEFAULT_CHANNEL(UI); #define VIDEOPORT_PALETTE_READ 0x03C7 #define VIDEOPORT_PALETTE_WRITE 0x03C8 @@ -50,8 +51,6 @@ #define VERTRES_350_SCANLINES 0x01 #define VERTRES_400_SCANLINES 0x02 -DBG_DEFAULT_CHANNEL(UI); - #include typedef struct { diff --git a/boot/freeldr/freeldr/disk/disk.c b/boot/freeldr/freeldr/disk/disk.c index e9579a0beab..befae8bba4c 100644 --- a/boot/freeldr/freeldr/disk/disk.c +++ b/boot/freeldr/freeldr/disk/disk.c @@ -21,7 +21,6 @@ #include #include - DBG_DEFAULT_CHANNEL(DISK); CHAR FrldrBootPath[MAX_PATH] = ""; diff --git a/boot/freeldr/freeldr/disk/partition.c b/boot/freeldr/freeldr/disk/partition.c index 67852a43048..d772791b004 100644 --- a/boot/freeldr/freeldr/disk/partition.c +++ b/boot/freeldr/freeldr/disk/partition.c @@ -21,7 +21,6 @@ #include #include - DBG_DEFAULT_CHANNEL(DISK); #define MaxDriveNumber 0xFF diff --git a/boot/freeldr/freeldr/disk/scsiport.c b/boot/freeldr/freeldr/disk/scsiport.c index 8fc967d85ab..a3a66e08a77 100644 --- a/boot/freeldr/freeldr/disk/scsiport.c +++ b/boot/freeldr/freeldr/disk/scsiport.c @@ -10,6 +10,9 @@ #include +#include +DBG_DEFAULT_CHANNEL(SCSIPORT); + #define _SCSIPORT_ #include @@ -48,15 +51,11 @@ #undef ScsiPortReadRegisterUlong #undef ScsiPortReadRegisterUshort -#include - #define SCSI_PORT_NEXT_REQUEST_READY 0x0008 #define TAG_SCSI_DEVEXT 'DscS' #define TAG_SCSI_ACCESS_RANGES 'AscS' -DBG_DEFAULT_CHANNEL(SCSIPORT); - /* GLOBALS ********************************************************************/ #ifdef _M_IX86 @@ -1631,7 +1630,7 @@ LoadBootDeviceDriver(VOID) return EIO; /* Add the PE part of freeldr.sys to the list of loaded executables, it - contains Scsiport* exports, imported by ntbootdd.sys */ + contains ScsiPort* exports, imported by ntbootdd.sys */ Success = WinLdrAllocateDataTableEntry(&ModuleListHead, "scsiport.sys", "FREELDR.SYS", &__ImageBase, &FreeldrDTE); if (!Success) diff --git a/boot/freeldr/freeldr/lib/cache/blocklist.c b/boot/freeldr/freeldr/lib/cache/blocklist.c index 1828fc1d3f2..018e3f3a4e2 100644 --- a/boot/freeldr/freeldr/lib/cache/blocklist.c +++ b/boot/freeldr/freeldr/lib/cache/blocklist.c @@ -18,8 +18,8 @@ */ #include -#include +#include DBG_DEFAULT_CHANNEL(CACHE); // Returns a pointer to a CACHE_BLOCK structure diff --git a/boot/freeldr/freeldr/lib/cache/cache.c b/boot/freeldr/freeldr/lib/cache/cache.c index a56068d05c6..37302d636d7 100644 --- a/boot/freeldr/freeldr/lib/cache/cache.c +++ b/boot/freeldr/freeldr/lib/cache/cache.c @@ -18,8 +18,8 @@ */ #include -#include +#include DBG_DEFAULT_CHANNEL(CACHE); /////////////////////////////////////////////////////////////////////////////////////// diff --git a/boot/freeldr/freeldr/lib/fs/btrfs.c b/boot/freeldr/freeldr/lib/fs/btrfs.c index 0912471b29c..a0b47a5e3da 100644 --- a/boot/freeldr/freeldr/lib/fs/btrfs.c +++ b/boot/freeldr/freeldr/lib/fs/btrfs.c @@ -8,8 +8,8 @@ /* Some code was taken from u-boot, https://github.com/u-boot/u-boot/tree/master/fs/btrfs */ #include -#include +#include DBG_DEFAULT_CHANNEL(FILESYSTEM); #define TAG_BTRFS_INFO 'IftB' diff --git a/boot/freeldr/freeldr/lib/fs/ext2.c b/boot/freeldr/freeldr/lib/fs/ext2.c index 19550c8425e..fca705eaac2 100644 --- a/boot/freeldr/freeldr/lib/fs/ext2.c +++ b/boot/freeldr/freeldr/lib/fs/ext2.c @@ -19,8 +19,8 @@ #ifndef _M_ARM #include -#include +#include DBG_DEFAULT_CHANNEL(FILESYSTEM); BOOLEAN Ext2OpenVolume(PEXT2_VOLUME_INFO Volume); diff --git a/boot/freeldr/freeldr/lib/fs/fat.c b/boot/freeldr/freeldr/lib/fs/fat.c index b2a91e3500c..63a1283a439 100644 --- a/boot/freeldr/freeldr/lib/fs/fat.c +++ b/boot/freeldr/freeldr/lib/fs/fat.c @@ -21,7 +21,6 @@ #include #include - DBG_DEFAULT_CHANNEL(FILESYSTEM); ULONG FatDetermineFatType(PFAT_BOOTSECTOR FatBootSector, ULONGLONG PartitionSectorCount); diff --git a/boot/freeldr/freeldr/lib/fs/iso.c b/boot/freeldr/freeldr/lib/fs/iso.c index 4c6a3e1dab4..76d1ec6ecf5 100644 --- a/boot/freeldr/freeldr/lib/fs/iso.c +++ b/boot/freeldr/freeldr/lib/fs/iso.c @@ -20,14 +20,14 @@ #ifndef _M_ARM #include + #include +DBG_DEFAULT_CHANNEL(FILESYSTEM); #define SECTORSIZE 2048 #define TAG_ISO_BUFFER 'BosI' #define TAG_ISO_FILE 'FosI' -DBG_DEFAULT_CHANNEL(FILESYSTEM); - static BOOLEAN IsoSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectoryLength, PCHAR FileName, PISO_FILE_INFO IsoFileInfoPointer) { PDIR_RECORD Record; diff --git a/boot/freeldr/freeldr/lib/fs/ntfs.c b/boot/freeldr/freeldr/lib/fs/ntfs.c index e68e4044977..e6f7b2531b9 100644 --- a/boot/freeldr/freeldr/lib/fs/ntfs.c +++ b/boot/freeldr/freeldr/lib/fs/ntfs.c @@ -26,7 +26,9 @@ #ifndef _M_ARM #include + #include +DBG_DEFAULT_CHANNEL(FILESYSTEM); #define TAG_NTFS_CONTEXT 'CftN' #define TAG_NTFS_LIST 'LftN' @@ -37,8 +39,6 @@ #define TAG_NTFS_VOLUME 'VftN' #define TAG_NTFS_DATA 'DftN' -DBG_DEFAULT_CHANNEL(FILESYSTEM); - typedef struct _NTFS_VOLUME_INFO { NTFS_BOOTSECTOR BootSector; diff --git a/boot/freeldr/freeldr/lib/fs/pxe.c b/boot/freeldr/freeldr/lib/fs/pxe.c index dedc3157faa..da6135edb91 100644 --- a/boot/freeldr/freeldr/lib/fs/pxe.c +++ b/boot/freeldr/freeldr/lib/fs/pxe.c @@ -20,12 +20,11 @@ #include #include +DBG_DEFAULT_CHANNEL(FILESYSTEM); #define TAG_PXE_FILE 'FexP' #define NO_FILE ((ULONG)-1) -DBG_DEFAULT_CHANNEL(FILESYSTEM); - static IP4 _ServerIP = { 0, }; static ULONG _OpenFile = NO_FILE; static CHAR _OpenFileName[128]; diff --git a/boot/freeldr/freeldr/lib/inifile/ini_init.c b/boot/freeldr/freeldr/lib/inifile/ini_init.c index f9c7e1c26ad..319c6379e93 100644 --- a/boot/freeldr/freeldr/lib/inifile/ini_init.c +++ b/boot/freeldr/freeldr/lib/inifile/ini_init.c @@ -18,6 +18,7 @@ */ #include + #include DBG_DEFAULT_CHANNEL(INIFILE); diff --git a/boot/freeldr/freeldr/lib/inifile/inifile.c b/boot/freeldr/freeldr/lib/inifile/inifile.c index fa231e8518d..a15102f28da 100644 --- a/boot/freeldr/freeldr/lib/inifile/inifile.c +++ b/boot/freeldr/freeldr/lib/inifile/inifile.c @@ -18,8 +18,8 @@ */ #include -#include +#include DBG_DEFAULT_CHANNEL(INIFILE); BOOLEAN IniOpenSection(PCSTR SectionName, ULONG_PTR* SectionId) diff --git a/boot/freeldr/freeldr/lib/inifile/parse.c b/boot/freeldr/freeldr/lib/inifile/parse.c index 1a5d1cff957..9a3c161e0ab 100644 --- a/boot/freeldr/freeldr/lib/inifile/parse.c +++ b/boot/freeldr/freeldr/lib/inifile/parse.c @@ -18,8 +18,8 @@ */ #include -#include +#include DBG_DEFAULT_CHANNEL(INIFILE); LIST_ENTRY IniFileSectionListHead; diff --git a/boot/freeldr/freeldr/lib/mm/heap.c b/boot/freeldr/freeldr/lib/mm/heap.c index 0e45ba352da..7f2fda05380 100644 --- a/boot/freeldr/freeldr/lib/mm/heap.c +++ b/boot/freeldr/freeldr/lib/mm/heap.c @@ -18,12 +18,12 @@ */ #include + #include +DBG_DEFAULT_CHANNEL(HEAP); #define FREELDR_HEAP_VERIFIER -DBG_DEFAULT_CHANNEL(HEAP); - #define REDZONE_MARK 0xCCCCCCCCCCCCCCCCULL #define REDZONE_ALLOCATION 24 #define REDZONE_LOW_OFFSET 16 diff --git a/boot/freeldr/freeldr/lib/mm/meminit.c b/boot/freeldr/freeldr/lib/mm/meminit.c index 164236c81c1..8276cb8ca57 100644 --- a/boot/freeldr/freeldr/lib/mm/meminit.c +++ b/boot/freeldr/freeldr/lib/mm/meminit.c @@ -19,8 +19,8 @@ */ #include -#include +#include DBG_DEFAULT_CHANNEL(MEMORY); PVOID PageLookupTableAddress = NULL; diff --git a/boot/freeldr/freeldr/ntldr/wlmemory.c b/boot/freeldr/freeldr/ntldr/wlmemory.c index 8259c383863..3d29c241a0f 100644 --- a/boot/freeldr/freeldr/ntldr/wlmemory.c +++ b/boot/freeldr/freeldr/ntldr/wlmemory.c @@ -12,7 +12,6 @@ #include "winldr.h" #include - DBG_DEFAULT_CHANNEL(WINDOWS); extern ULONG LoaderPagesSpanned;