You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/12/08 01:01:11 UTC
incubator-mynewt-core git commit: shell; pretty print memory pool use.
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop 071271c85 -> e1fb47b80
shell; pretty print memory pool use.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/e1fb47b8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/e1fb47b8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/e1fb47b8
Branch: refs/heads/develop
Commit: e1fb47b8078507ef6ef349fcb44884a8b218c6dd
Parents: 071271c
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Dec 7 17:00:54 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Dec 7 17:00:54 2016 -0800
----------------------------------------------------------------------
sys/shell/src/shell_os.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e1fb47b8/sys/shell/src/shell_os.c
----------------------------------------------------------------------
diff --git a/sys/shell/src/shell_os.c b/sys/shell/src/shell_os.c
index 14b8657..ae409ae 100644
--- a/sys/shell/src/shell_os.c
+++ b/sys/shell/src/shell_os.c
@@ -97,6 +97,7 @@ shell_os_mpool_display_cmd(int argc, char **argv)
console_printf("Mempools: \n");
mp = NULL;
+ console_printf("%32s %5s %4s %4s\n", "name", "blksz", "cnt", "free");
while (1) {
mp = os_mempool_info_get_next(mp, &omi);
if (mp == NULL) {
@@ -111,9 +112,8 @@ shell_os_mpool_display_cmd(int argc, char **argv)
}
}
- console_printf(" %s (blksize: %d, nblocks: %d, nfree: %d)\n",
- omi.omi_name, omi.omi_block_size, omi.omi_num_blocks,
- omi.omi_num_free);
+ console_printf("%32s %5d %4d %4d\n", omi.omi_name, omi.omi_block_size,
+ omi.omi_num_blocks, omi.omi_num_free);
}
if (name && !found) {