Library to include: #include "Library/DebugLib.h" DEBUG (("%a: %d\n", _FUNCTION_, _LINE_)); example: DEBUG((EFI_D_INFO, "My Entry Point: 0x%08x\r\n",(CHAR16*)UefiMain));