\boot_images\QcomPkg\SocPkg\XXX\Settings\Charger\QcomChargerConfig_VbattTh.cfg
PrintChargerAppDbgMsg = TRUE
PrintChargerAppDbgMsg = TRUE
PrintChargerAppDbgMsgToFile = TRUE
EnDebugAccessMode = TRUE
在需要打印log的地方添加
#include <Library/DebugLib.h>
DEBUG((EFI_D_ERROR, "xxx\n"));