diff options
Diffstat (limited to 'components/finsh/cmd.c')
| -rw-r--r-- | components/finsh/cmd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index d125864aa0..451d80506b 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -356,7 +356,8 @@ static long _list_device(struct rt_list_node *list) "CAN Device", "RTC", "Sound Device", - "Graphic Device", + "Graphic Device",
+ "I2C Bus", "I2C Device", "USB Slave Device", "USB Host Bus", @@ -401,12 +402,10 @@ int list_module(void) for (node = list->next; node != list; node = node->next) { module = (struct rt_module*)(rt_list_entry(node, struct rt_object, list)); - rt_kprintf("%-16s ", module->parent.name); - rt_kprintf("%-04d \n", module->nref); + rt_kprintf("%-16.*s %-04d\n", RT_NAME_MAX, module->parent.name, module->nref); } return 0; - } FINSH_FUNCTION_EXPORT(list_module, list module in system) |
