From 798e73e7142f02a2cf7261a37095a84db47d877b Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 22 Mar 2022 16:37:56 -0700 Subject: More debug information --- src/util/mutex.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/util') diff --git a/src/util/mutex.c b/src/util/mutex.c index a60cea6..8e85f8f 100644 --- a/src/util/mutex.c +++ b/src/util/mutex.c @@ -67,6 +67,13 @@ void uart_mutexes(void) uart_hexn((unsigned long)m->addr); entry = entry->next; } + unsigned long count = 0; + entry = mutex_manager.free.start.next; + while (entry->entry_type == VALUE_ENTRY) { + count++; + entry = entry->next; + } + uart_hexn(count); } void lock_mutex(struct Mutex* m) -- cgit v1.2.1