rt_assert_hook(ex_string, func, line);} } RTM_EXPORT(rt_assert_handler);#endif /* RT_DEBUG */ 问题解决 .config - RT-Thread Configuration RT-Thread Kernel Enable debugging features ---> 使能:#define RT_DEBUG后,RT_ASSERT正常了 至于什么时候关闭的这个内核选项,不清楚了,遇到问题,多请教,多调试,多总结。
RT-Thread 的断言支持断言回调(hook),我们定义一个类似如下的断言 hook 函数,然后通过rt_assert_set_hook(rtt_user_assert_hook); 函数将其设置到系统中即可。 staticvoidrtt_user_assert_hook(constchar*ex,constchar*func,rt_size_tline){rt_enter_critical();ulog_output...
RT-Thread 的断言支持断言回调(hook),我们定义一个类似如下的断言 hook 函数,然后通过 rt_assert_set_hook(rtt_user_assert_hook); 函数将其设置到系统中即可。 static void rtt_user_assert_hook(const char* ex, const char* func, rt_size_t line) { rt_enter_critical(); ulog_output(LOG_LVL_ASSER...
rt_kprintf("(%s) assertion failed at function:%s, line number:%d \n", ex_string, func, line); while (dummy == 0); } } else { rt_assert_hook(ex_string, func, line); } } RTM_EXPORT(rt_assert_handler); #endif /* RT_DEBUG */#...
- drm/amd/display: Remove invalid assert for ODM + MPC case - libnvdimm/region: Fix label activation vs errors - ACPI: NFIT: Fix support for virtual SPA ranges - ceph: reduce contention in ceph_check_delayed_caps() - ARC: fp: set FPU_STATUS.FWE to enable FPU_STATUS...
void show_string(const char *str) { ASSERT(str); ... } 日志使用示例 使用示例 下面将以 ulog 例程进行介绍,打开rt-thread\examples\ulog_example.c可以看到,顶部有定义该文件的标签及静态优先级。 #defineLOG_TAG"example"#defineLOG_LVLLOG_LVL_DBG#include<ulog.h> ...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filt...
增加rt_assert_hook,在触发断言时可以执行这个钩子函数; 修正应用模块分散加载情况下的问题; 工具 scons中定义Group时加入了本Group内的编译参数定义; 修正了如果Group中即包含代码,也包含二进制库时,生成的Keil MDK工程文件有两个重名Group的问题; 版本: RT-Threadv2.0.1及v2.1.0 alpha RT-Thread v2.0.1是2.0...
RT-Thread 的断言支持断言回调(hook),我们定义一个类似如下的断言 hook 函数,然后通过rt_assert_set_hook(rtt_user_assert_hook);函数将其设置到系统中即可。 static void rtt_user_assert_hook(const char* ex, const char* func, rt_size_t line) ...
7d68c206 OPP: add index check to assert to avoid buffer overflow in _read_freq()833b813b drm/amdgpu/vcn: reset fw_shared under SRIOV1831b7b2 drm/rockchip: vop2: include rockchip_drm_drv.hd76731db drm/rockchip: vop2: Add check for 32 bpp format for rk3588...