Skip to content

[Bug] print format looks werid when RT_DEBUGING_AUTO_INIT is open #9671

@unicornx

Description

@unicornx

RT-Thread Version

master

Hardware Type/Architectures

bsp/cvitek/cv18xx_risc-v/

Develop Toolchain

Other

Describe the bug

enable RT_DEBUGING_AUTO_INIT 后,控制台上打印的格式比较混乱,建议改进:

image

正常情况下,如果 init 函数中没有打印输出时,规整的输出是如下格式,例如:

initialize rti_board_end:0 done

但是一旦 init 函数中有打印输出,log 就比较混乱。譬如:

initialize mnt_initfile system initialization done!
:0 done

函数名 mnt_init 和打印 file system initialization done! 连在一起了,很容易搞混。

建议对打印统一在输出函数名后强制回车,然后另起一行打印输出结果。譬如:

initialize rti_board_end:
0 done

或者

initialize mnt_init
file system initialization done!
:0 done

这样看上去规整一些。

Other additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions