DEBUG((DEBUG_INFO, "Initializing XXX controller in slot %d\n", Slot));
Status = InitController(PciIo, Slot); if (EFI_ERROR(Status)) { DEBUG((DEBUG_ERROR, "Failed to switch Host to PCIe mode: %r\n", Status)); return Status; }
[PcdsFixedAtBuild] # refer to https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Debugging gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000040
再编译MdeModulePkg inf,输出的efi可见INFO级别的打印生效。
UTF8中文报错
问题log:
1 2
C:\edk2\MdeModulePkg\Bus\Pci\SdMmcPciHcDxe\BayhubHost.h(1): error C2220: the following warning is treated as an error C:\edk2\MdeModulePkg\Bus\Pci\SdMmcPciHcDxe\BayhubHost.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss