[Cryptech-Commits] [sw/stm32] 03/03: Report UART receive queue length, so we can tune it.

git at cryptech.is git at cryptech.is
Tue Aug 22 17:29:57 UTC 2017


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository sw/stm32.

commit 8b4fd991922f5e33a6d52cc7b0059e1cf5cc59ab
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Mon Jul 31 23:23:33 2017 -0400

    Report UART receive queue length, so we can tune it.
---
 projects/hsm/mgmt-task.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/projects/hsm/mgmt-task.c b/projects/hsm/mgmt-task.c
index a1ae7e6..ac1a737 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;
 }



More information about the Commits mailing list