DEBUG((EFI_D_ERROR, "File : %a, Function : %a, Line : %d. Status=%r \n",__FILE__,__FUNCTION__,__LINE__,Status));
不开debug mode 打印自己的加入的log
本质上还是serial port串口输出
目前有个办法就是直接调用debugprint函数
但是有些模块丢不出log
大概原因是 debugmode为0时
调用的lib是xxxlibnull
丢不出log时 我们可以尝试使用最深层的serialportwrite函数
uint8 text[100]
asciisprint((char8*)text,100,”%a\n\r”,name)
terminaloutputstringhelper(text)
觉得有帮助的小伙伴 留言点赞哦