Janus Erasmus / Console

Dependents:   Nucleo_blink_led

Files at this revision

API Documentation at this revision

Comitter:
JanusErasmus
Date:
Mon Apr 23 16:06:02 2018 +0000
Parent:
2:4c8b24eb7ad5
Commit message:
Print thread info in tables

Changed in this revision

Console.cpp Show annotated file Show diff for this revision Revisions of this file
Console.h Show annotated file Show diff for this revision Revisions of this file
--- a/Console.cpp	Sat Mar 17 14:36:57 2018 +0200
+++ b/Console.cpp	Mon Apr 23 16:06:02 2018 +0000
@@ -53,7 +53,7 @@
     int cnt = mbed_stats_stack_get_each(stacks, 10);
     for(int k = 0; k < cnt; k++)
     {
-        printf("%d - TH[%lu]: max: %lu, res: %lu\n", k, stacks[k].thread_id, stacks[k].max_size, stacks[k].reserved_size);
+        printf("%d - TH[%lu]: max: %6lu, res: %6lu\n", k, stacks[k].thread_id, stacks[k].max_size, stacks[k].reserved_size);
     }
 }
 
--- a/Console.h	Sat Mar 17 14:36:57 2018 +0200
+++ b/Console.h	Mon Apr 23 16:06:02 2018 +0000
@@ -10,7 +10,6 @@
 
 #include "mbed.h"
 
-#include "mbed-os/rtos/Thread.h"
 
 #define INFO_TRACE(_class, _string, ...)    diag_printf( "%15s : " _string, _class, ##__VA_ARGS__)
 #define DEBUG_TRACE(_lvl, _class, _string, ...)    dbg_printf(_lvl, "%15s : " _string, _class, ##__VA_ARGS__)