diff options
| author | wdfk-prog <[email protected]> | 2022-12-21 16:09:53 +0800 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2022-12-22 22:51:24 -0500 |
| commit | f4c08cfe36f886939a8cee53877c5cd8201cafe2 (patch) | |
| tree | a440bcc022ec8b0cb8c3c9d38ca19e19f3069bce /components/utilities | |
| parent | db6ee55379aae1a4b2cad5b7cab4d5891334db79 (diff) | |
修改printf格式“%-*.s”为“%-*.*s
Diffstat (limited to 'components/utilities')
| -rw-r--r-- | components/utilities/ulog/ulog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c index 539f7ef24c..49c111a41c 100644 --- a/components/utilities/ulog/ulog.c +++ b/components/utilities/ulog/ulog.c @@ -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]); |
