diff options
Diffstat (limited to 'projects/hsm/mgmt-task.c')
-rw-r--r-- | projects/hsm/mgmt-task.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/projects/hsm/mgmt-task.c b/projects/hsm/mgmt-task.c index 1658a80..4668585 100644 --- a/projects/hsm/mgmt-task.c +++ b/projects/hsm/mgmt-task.c @@ -63,8 +63,12 @@ static int cmd_task_show(struct cli_def *cli, const char *command, char *argv[], } cli_print(cli, " "); - cli_print(cli, "request queue current length: %d", request_queue_len()); - cli_print(cli, "request queue maximum length: %d", request_queue_max()); + cli_print(cli, "RPC request queue current length: %u", request_queue_len()); + cli_print(cli, "RPC request queue maximum length: %u", request_queue_max()); + + extern size_t uart_rx_max; + cli_print(cli, " "); + cli_print(cli, "UART receive queue maximum length: %u", uart_rx_max); return CLI_OK; } @@ -95,7 +99,10 @@ void configure_cli_task(struct cli_def *cli) struct cli_command *c = cli_register_command(cli, NULL, "task", NULL, 0, 0, NULL); /* task show */ - struct cli_command *c_show = cli_register_command(cli, c, "show", cmd_task_show, 0, 0, "Show the active tasks"); +#ifdef DO_TASK_METRICS + struct cli_command *c_show = +#endif + cli_register_command(cli, c, "show", cmd_task_show, 0, 0, "Show the active tasks"); #ifdef DO_TASK_METRICS /* task show metrics */ |