Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
逆着光、寻觅
rt-thread
提交
517e909c
R
rt-thread
项目概览
逆着光、寻觅
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
517e909c
编写于
9月 07, 2016
作者:
G
gbcwbz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[finsh]Align title and content in list_* cmd
上级
d42fa18b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
26 addition
and
14 deletion
+26
-14
components/finsh/cmd.c
components/finsh/cmd.c
+26
-14
未找到文件。
components/finsh/cmd.c
浏览文件 @
517e909c
...
@@ -221,8 +221,8 @@ static long _list_event(struct rt_list_node *list)
...
@@ -221,8 +221,8 @@ static long _list_event(struct rt_list_node *list)
maxlen
=
object_name_maxlen
(
list
);
maxlen
=
object_name_maxlen
(
list
);
rt_kprintf
(
"%-*.s
set
suspend thread
\n
"
,
maxlen
,
"event"
);
object_split
(
maxlen
);
rt_kprintf
(
"%-*.s
set
suspend thread
\n
"
,
maxlen
,
"event"
);
object_split
(
maxlen
);
rt_kprintf
(
"
---------- --------------
\n
"
);
rt_kprintf
(
"
---------- --------------
\n
"
);
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
{
{
e
=
(
struct
rt_event
*
)(
rt_list_entry
(
node
,
struct
rt_object
,
list
));
e
=
(
struct
rt_event
*
)(
rt_list_entry
(
node
,
struct
rt_object
,
list
));
...
@@ -262,8 +262,8 @@ static long _list_mutex(struct rt_list_node *list)
...
@@ -262,8 +262,8 @@ static long _list_mutex(struct rt_list_node *list)
struct
rt_list_node
*
node
;
struct
rt_list_node
*
node
;
maxlen
=
object_name_maxlen
(
list
);
maxlen
=
object_name_maxlen
(
list
);
rt_kprintf
(
"%-*.s
owner
hold suspend thread
\n
"
,
maxlen
,
"mutex"
);
object_split
(
maxlen
);
rt_kprintf
(
"%-*.s
owner
hold suspend thread
\n
"
,
maxlen
,
"mutex"
);
object_split
(
maxlen
);
rt_kprintf
(
" -------- ---- --------------
\n
"
);
rt_kprintf
(
" -------- ---- --------------
\n
"
);
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
{
{
m
=
(
struct
rt_mutex
*
)(
rt_list_entry
(
node
,
struct
rt_object
,
list
));
m
=
(
struct
rt_mutex
*
)(
rt_list_entry
(
node
,
struct
rt_object
,
list
));
...
@@ -293,11 +293,15 @@ static long _list_mailbox(struct rt_list_node *list)
...
@@ -293,11 +293,15 @@ static long _list_mailbox(struct rt_list_node *list)
int
maxlen
;
int
maxlen
;
struct
rt_mailbox
*
m
;
struct
rt_mailbox
*
m
;
struct
rt_list_node
*
node
;
struct
rt_list_node
*
node
;
int
item_title_len
;
const
char
*
item_title
=
"mailbox"
;
item_title_len
=
rt_strlen
(
item_title
);
maxlen
=
object_name_maxlen
(
list
);
maxlen
=
object_name_maxlen
(
list
);
if
(
maxlen
<
item_title_len
)
maxlen
=
item_title_len
;
rt_kprintf
(
"%-*.s
entry size suspend thread
\n
"
,
maxlen
,
"mailbox"
);
object_split
(
maxlen
);
rt_kprintf
(
"%-*.s
entry size suspend thread
\n
"
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" ---- ---- --------------
\n
"
);
rt_kprintf
(
" ---- ---- --------------
\n
"
);
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
{
{
m
=
(
struct
rt_mailbox
*
)(
rt_list_entry
(
node
,
struct
rt_object
,
list
));
m
=
(
struct
rt_mailbox
*
)(
rt_list_entry
(
node
,
struct
rt_object
,
list
));
...
@@ -340,10 +344,14 @@ static long _list_msgqueue(struct rt_list_node *list)
...
@@ -340,10 +344,14 @@ static long _list_msgqueue(struct rt_list_node *list)
int
maxlen
;
int
maxlen
;
struct
rt_messagequeue
*
m
;
struct
rt_messagequeue
*
m
;
struct
rt_list_node
*
node
;
struct
rt_list_node
*
node
;
int
item_title_len
;
const
char
*
item_title
=
"msgqueue"
;
item_title_len
=
rt_strlen
(
item_title
);
maxlen
=
object_name_maxlen
(
list
);
maxlen
=
object_name_maxlen
(
list
);
if
(
maxlen
<
item_title_len
)
maxlen
=
item_title_len
;
rt_kprintf
(
"%-*.s entry suspend thread
\n
"
,
maxlen
,
"msgqueue"
);
object_split
(
maxlen
);
rt_kprintf
(
"%-*.s entry suspend thread
\n
"
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" ---- --------------
\n
"
);
rt_kprintf
(
" ---- --------------
\n
"
);
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
{
{
...
@@ -422,8 +430,8 @@ static long _list_mempool(struct rt_list_node *list)
...
@@ -422,8 +430,8 @@ static long _list_mempool(struct rt_list_node *list)
maxlen
=
object_name_maxlen
(
list
);
maxlen
=
object_name_maxlen
(
list
);
rt_kprintf
(
"%-*.s
block total free suspend thread
\n
"
,
maxlen
,
"mempool"
);
object_split
(
maxlen
);
rt_kprintf
(
"%-*.s block total free suspend thread
\n
"
,
maxlen
,
"mempool"
);
object_split
(
maxlen
);
rt_kprintf
(
" ---- ---- ---- --------------
\n
"
);
rt_kprintf
(
" ---- ---- ---- --------------
\n
"
);
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
{
{
mp
=
(
struct
rt_mempool
*
)
rt_list_entry
(
node
,
struct
rt_object
,
list
);
mp
=
(
struct
rt_mempool
*
)
rt_list_entry
(
node
,
struct
rt_object
,
list
);
...
@@ -470,8 +478,8 @@ static long _list_timer(struct rt_list_node *list)
...
@@ -470,8 +478,8 @@ static long _list_timer(struct rt_list_node *list)
maxlen
=
object_name_maxlen
(
list
);
maxlen
=
object_name_maxlen
(
list
);
rt_kprintf
(
"%-*.s
periodic timeout
flag
\n
"
,
maxlen
,
"timer"
);
object_split
(
maxlen
);
rt_kprintf
(
"%-*.s
periodic timeout
flag
\n
"
,
maxlen
,
"timer"
);
object_split
(
maxlen
);
rt_kprintf
(
" ---------- ---------- -----------
\n
"
);
rt_kprintf
(
" ---------- ---------- -----------
\n
"
);
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
{
{
timer
=
(
struct
rt_timer
*
)(
rt_list_entry
(
node
,
struct
rt_object
,
list
));
timer
=
(
struct
rt_timer
*
)(
rt_list_entry
(
node
,
struct
rt_object
,
list
));
...
@@ -527,11 +535,15 @@ static long _list_device(struct rt_list_node *list)
...
@@ -527,11 +535,15 @@ static long _list_device(struct rt_list_node *list)
"Miscellaneous Device"
,
"Miscellaneous Device"
,
"Unknown"
"Unknown"
};
};
int
item_title_len
;
const
char
*
item_title
=
"device"
;
item_title_len
=
rt_strlen
(
item_title
);
maxlen
=
object_name_maxlen
(
list
);
maxlen
=
object_name_maxlen
(
list
);
if
(
maxlen
<
item_title_len
)
maxlen
=
item_title_len
;
rt_kprintf
(
"%-*.s
type ref count
\n
"
,
maxlen
,
"device"
);
object_split
(
maxlen
);
rt_kprintf
(
"%-*.s
type ref count
\n
"
,
maxlen
,
item_title
);
object_split
(
maxlen
);
rt_kprintf
(
" -------------------- ----------
\n
"
);
rt_kprintf
(
" -------------------- ----------
\n
"
);
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
for
(
node
=
list
->
next
;
node
!=
list
;
node
=
node
->
next
)
{
{
device
=
(
struct
rt_device
*
)(
rt_list_entry
(
node
,
struct
rt_object
,
list
));
device
=
(
struct
rt_device
*
)(
rt_list_entry
(
node
,
struct
rt_object
,
list
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录