Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_76519099
rt-thread
提交
f4c08cfe
R
rt-thread
项目概览
2301_76519099
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
3
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f4c08cfe
编写于
12月 21, 2022
作者:
哈哈哈可是开电脑
提交者:
mysterywolf
12月 22, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改printf格式“%-*.s”为“%-*.*s
上级
db6ee553
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
12 addition
and
12 deletion
+12
-12
components/finsh/cmd.c
components/finsh/cmd.c
+11
-11
components/utilities/ulog/ulog.c
components/utilities/ulog/ulog.c
+1
-1
未找到文件。
components/finsh/cmd.c
浏览文件 @
f4c08cfe
...
...
@@ -166,11 +166,11 @@ long list_thread(void)
maxlen
=
RT_NAME_MAX
;
#ifdef RT_USING_SMP
rt_kprintf
(
"%-*.
s cpu bind pri status sp stack size max used left tick error
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s cpu bind pri status sp stack size max used left tick error
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" --- ---- --- ------- ---------- ---------- ------ ---------- ---
\n
"
);
#else
rt_kprintf
(
"%-*.
s pri status sp stack size max used left tick error
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s pri status sp stack size max used left tick error
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" --- ------- ---------- ---------- ------ ---------- ---
\n
"
);
#endif
/*RT_USING_SMP*/
...
...
@@ -278,7 +278,7 @@ long list_sem(void)
maxlen
=
RT_NAME_MAX
;
rt_kprintf
(
"%-*.
s v suspend thread
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s v suspend thread
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" --- --------------
\n
"
);
...
...
@@ -344,7 +344,7 @@ long list_event(void)
maxlen
=
RT_NAME_MAX
;
rt_kprintf
(
"%-*.
s set suspend thread
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s set suspend thread
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" ---------- --------------
\n
"
);
...
...
@@ -408,7 +408,7 @@ long list_mutex(void)
maxlen
=
RT_NAME_MAX
;
rt_kprintf
(
"%-*.
s owner hold priority suspend thread
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s owner hold priority suspend thread
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" -------- ---- -------- --------------
\n
"
);
...
...
@@ -481,7 +481,7 @@ long list_mailbox(void)
maxlen
=
RT_NAME_MAX
;
rt_kprintf
(
"%-*.
s entry size suspend thread
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s entry size suspend thread
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" ---- ---- --------------
\n
"
);
...
...
@@ -551,7 +551,7 @@ long list_msgqueue(void)
maxlen
=
RT_NAME_MAX
;
rt_kprintf
(
"%-*.
s entry suspend thread
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s entry suspend thread
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" ---- --------------
\n
"
);
do
...
...
@@ -617,7 +617,7 @@ long list_memheap(void)
maxlen
=
RT_NAME_MAX
;
rt_kprintf
(
"%-*.
s pool size max used size available size
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s pool size max used size available size
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" ---------- ------------- --------------
\n
"
);
do
...
...
@@ -673,7 +673,7 @@ long list_mempool(void)
maxlen
=
RT_NAME_MAX
;
rt_kprintf
(
"%-*.
s block total free suspend thread
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s block total free suspend thread
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" ---- ---- ---- --------------
\n
"
);
do
...
...
@@ -751,7 +751,7 @@ long list_timer(void)
maxlen
=
RT_NAME_MAX
;
rt_kprintf
(
"%-*.
s periodic timeout activated mode
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s periodic timeout activated mode
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" ---------- ---------- ----------- ---------
\n
"
);
do
...
...
@@ -849,7 +849,7 @@ long list_device(void)
maxlen
=
RT_NAME_MAX
;
rt_kprintf
(
"%-*.
s type ref count
\n
"
,
maxlen
,
item_title
);
rt_kprintf
(
"%-*.
*s type ref count
\n
"
,
maxlen
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" -------------------- ----------
\n
"
);
do
...
...
components/utilities/ulog/ulog.c
浏览文件 @
f4c08cfe
...
...
@@ -1235,7 +1235,7 @@ static void ulog_filter(uint8_t argc, char **argv)
for
(
node
=
rt_slist_first
(
ulog_tag_lvl_list_get
());
node
;
node
=
rt_slist_next
(
node
))
{
tag_lvl
=
rt_slist_entry
(
node
,
struct
ulog_tag_lvl_filter
,
list
);
rt_kprintf
(
"%-*.
s: "
,
ULOG_FILTER_TAG_MAX_LEN
,
tag_lvl
->
tag
);
rt_kprintf
(
"%-*.
*s: "
,
ULOG_FILTER_TAG_MAX_LEN
,
ULOG_FILTER_TAG_MAX_LEN
,
tag_lvl
->
tag
);
#ifndef ULOG_USING_SYSLOG
rt_kprintf
(
"%s
\n
"
,
lvl_name
[
tag_lvl
->
level
]);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录