调试信息分级打印DIY
2016-12-06 17:45
477 查看
#define DEBUG_GENERAL 0x00000001 /* general debug messages */ #define DEBUG_INFO 0x00000002 /* More debug information */ #if defined (FSBL_DEBUG_INFO) #define fsbl_dbg_current_types ((DEBUG_INFO) | (DEBUG_GENERAL)) #elif defined (FSBL_DEBUG) #define fsbl_dbg_current_types (DEBUG_GENERAL) #else #define fsbl_dbg_current_types 0 #endif #ifdef STDOUT_BASEADDRESS #define fsbl_printf(type,...) \ if (((type) & fsbl_dbg_current_types)) {xil_printf (__VA_ARGS__); } #else #define fsbl_printf(type, ...) #endif
相关文章推荐
- javascript——Array
- 扩展BaseAdapter实现不存储列表项的ListView
- 对深蓝少年之机甲勇士的逆向分析
- 【js】JSON.stringify 语法实例讲解
- C++ 多线程调用Python脚本
- 带你认识常用的Git命令
- 基于rest的SpringSecurity(依赖csrf)
- JMeter学习-017-java.net.SocketException: Permission denied: connect 解决方案
- C#学习常用类(1000)---Stopwatch类
- Android 栈溢出攻击—[0]原理
- Java基础学习总结(10)——JAVA解析XML
- zkw线段树
- 记一次mysql故障恢复
- RABBITMQ(小总结 持续更新...
- C#研究OpenXML之路(4-使用第三方库)
- 快速打开chorme书签
- JAVA 动态代理
- opencv保存intel realsense SR300获得的图像
- heritrix1.14.4配置-没有add和change按钮的问题
- ASP.NET MVC WebAPI请求