Commit Graph

71 Commits

Author SHA1 Message Date
ligr ca1d4e6dea [components][ulog]add some comments to ulog for supplement. 2024-11-26 20:05:09 +08:00
wdfk-prog ff6d5b13f0
[components][ulog] ULOG_OUTPUT_LEVEL未定义时,level_output_info产生警告 2024-10-03 19:19:24 -04:00
Rui 3b1d4e9222
fix Compilation error in "driver.c", "completion_up.c", "syslog.c" and "dlmodule.c". (#9093) 2024-06-26 23:25:23 +08:00
latercomer 6bfe740f27 解决LOG_RAW异步输出多条文本的时候会被截断,原因是rt_vsnprintf会在字符串最后添加\0,ulog.c中的do_output()将\0也压入到ulog.async_rb,当LOG_RAW没有及时输出,那么rb中的字符串被\0截断了,导致没法正确输出LOG_RAW信息 2024-04-19 22:27:33 -04:00
Shell 83e95bdff4
sync smart & dfs (#8672)
Signed-off-by: xqyjlj <xqyjlj@126.com>
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-03-28 23:42:56 +08:00
Shell f6fce5f8d7 [kservice] MT-safe output support (kprintf/kputs)
Signed-off-by: Shell <smokewood@qq.com>
2024-01-16 00:59:18 +08:00
xqyjlj 3283f54c7a
🎈 perf: perf rt_hw_interrupt_disable/enable (#8042)
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: Shell <smokewood@qq.com>
2023-10-25 20:31:25 +08:00
guozhanxin befb15b428 [ulog] support ulog_async_output_enabled 2023-07-05 04:34:25 +08:00
Shicheng Chu 93f3cb30e4
[kernel] 将rt_thread结构体改为显式继承rt_object (#7131) 2023-04-04 09:06:27 -04:00
Meco Man e97ba95f71 [libc][unistd.h] define F_OK 2023-01-02 15:01:20 -05:00
wdfk-prog f4c08cfe36 修改printf格式“%-*.s”为“%-*.*s 2022-12-22 22:51:24 -05:00
Man, Jianting (Meco) 99bdf978d7
[rtdef] use lower-case to define attributes (#6728)
* [rtdef] rename RT_WEAK attribute as rt_weak

* [rtdef] rename RT_USED attribute as rt_used

* [rtdef] rename RT_SECTION attribute as rt_section

* [rtdef] rename ALIGN attribute as rt_align

* [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-12-11 13:12:03 -05:00
朱天龙 (Armink) 35c7dd6aba [ulog] fix HEX log size calculate error. 2022-10-10 08:47:41 -04:00
朱天龙 (Armink) a48f446a0f
[components][utilities][ulog] Improve the HEX LOG by new formater. (#6490)
- 重构格式化器
- 重写 HEX 日志功能,与标准日志使用相同的格式化器。与标准日志在日志过滤功能和日志头显示功能上一致
2022-10-08 22:33:10 -04:00
Tangyuxin ca30428cee
修复低概率终端无法输入问题 (#6464)
* [ulog] Fix the problem that the terminal cannot input

* [mem] Fix NULL pointer access
2022-09-27 11:11:29 +08:00
Tangyuxin a4829b1c00
[fix] Fix simulator compilation warnings (#6438)
* [fix] Fix simulator compilation warnings

* Update bsp/simulator/rtconfig_project.h

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-09-20 10:31:11 -04:00
tyx 4f342456b3 [ulog] Optimize unnecessary refresh 2022-05-25 10:05:41 +08:00
tyx 556b14ed47 [components][ulog] Add file backend 2022-04-06 16:05:45 +08:00
guozhanxin 61f1f698ec Fixed the issue LOG_HEX no output at asyn mode. 2022-03-26 21:58:49 +08:00
Man, Jianting (Meco) 8b58577230
[ulog][rtc][time][bug] solve the interference when enable the ulog timestamp (#5687)
* [ulog] 解决ulog开启时间戳后与libc time以及rtc驱动相关函数干涉的问题
* ulog:当发生递归输出时,后续递归想要输出的内容可能会因为防范递归的判断而无法输出
因此修改输出规则,在发生递归时,采用简单的,无格式的方式直接输出。这样既保证不会发生递归输出,也可以保证递归输出的部分可以正常输出。
* [ulog] size_t->rt_size_t NULL->RT_NULL
2022-03-21 14:06:17 +08:00
Man, Jianting (Meco) 86a10716cd
优化ULOG_OUTPUT_FLOAT,避免使用内置libc的vsnprintf函数 (#5632) 2022-03-07 01:14:22 +08:00
Man, Jianting (Meco) d4b5555b7e
移除localtime_r多余的声明 (#5590) 2022-02-10 18:19:33 +08:00
guozhanxin af702e048d [ulog] Optimize code to improve readability. 2022-02-10 10:22:08 +08:00
guozhanxin 26c511475e [ulog] Fixed the problem of abnormal log output at the INIT_BOARD_EXPORT level. 2022-02-10 10:22:08 +08:00
armink 4399aed641 fix build error. 2021-12-03 13:34:03 +08:00
armink d8d15017bc [ulog] Add ulog backend filter. 2021-12-03 12:04:20 +08:00
rtthread-bot a702763dbc Merge remote-tracking branch 'rtt_gitee/gitee_master' 2021-10-15 08:20:37 +00:00
Bernard Xiong e0c7371b02
Merge pull request #5114 from armink/fix_ulog
[utilities][ulog] Increase the usec check time.
2021-10-11 01:53:21 +08:00
armink 1f5a4ffe02 [utilities][ulog] Increase the usec check time. 2021-10-09 16:55:46 +08:00
shishirong 797c80a7cb fix ulog compile error. 2021-10-08 10:03:01 +08:00
shishirong ab86b7490d fix Macro definition syntax error in ulog.c 2021-09-09 17:02:21 +08:00
马志远 221da7f464 Remove C Style Command Shell 2021-08-23 17:30:05 +08:00
梁林 a6bf03a0c8 多个ulog后端时不支持support_color后端的log指针偏移错误,导致保存到文件的日志出现乱码。 2021-08-19 09:13:16 +08:00
armink e0b9987508 [ulog] Add output locker enabled API
Signed-off-by: armink <armink.ztl@gmail.com>
2021-05-19 18:17:37 +08:00
Bernard Xiong 3fa35a398b
Update ulog.c
Use `rt_thread_self()` to determine whether the scheduler is started or not.
2021-04-19 06:50:58 +08:00
armink 2ea39b4f05 [ulog] Using gettimeofday for timestamp get. 2021-04-15 14:15:39 +08:00
armink 3ae6ca1fb0 [ulog] Fix thread info show when kernel not startup. 2021-04-15 14:10:27 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
iysheng 0b2212f773 [components][ulog] Add support with timestamp print in function ulog_hexdump 2021-03-02 12:11:19 +08:00
chenyong cddf947863 [utilities][ulog] Add LOG_RAW ringbuffer to fix printing line limit issue
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-02-01 11:22:05 +08:00
chenyong 43b1daf325 [utilities][ulog] fix ulog backend color log length calculation error
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-01-21 18:58:57 +08:00
chenyong 87b5f3f51e [components][utilities][ulog] Add backend filtering interface, add async log output control interface, ulog mutex change to semaphore
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-01-20 11:20:30 +08:00
michael 3f3ff458ed ulog:fixed compile err
syslog.c:154:34: error: unknown type name 'uint8_t'
2020-09-04 11:15:02 +08:00
teh-c d5e03ad5d1 rt_snprintf多了个参数。 2020-07-03 17:10:43 +08:00
a1012112796 73cae9564b [ULOG] fix raw size bug for backend which don't suport color 2020-01-07 11:22:26 +08:00
任光伟 9893f64610 ulogbuffer增加1,为\0预留空间
Signed-off-by: RGW <rgw5267@gmail.com>
2019-12-23 10:49:01 +08:00
chenyong 2b50d3d32c [components][finsh] Decouple RT_USING_DEVICE dependency for msh feature
Signed-off-by: chenyong <1521761801@qq.com>
2019-09-25 20:14:39 +08:00
armink 8feb6af992 [component/ulog] Fix ulog hexdump show issue. 2019-08-03 16:52:37 +08:00
armink 11b0c65921 [components][ulog] Make the asynchronous log output more timely. 2019-05-16 09:55:35 +08:00
armink 415d12220b [components][ulog] Fix the log length error when using multiple non-color backends. 2019-05-15 08:57:45 +08:00