aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-22 16:37:56 -0700
committerChristian Cunningham <cc@localhost>2022-03-22 16:37:56 -0700
commit798e73e7142f02a2cf7261a37095a84db47d877b (patch)
tree4f34d28e7d486face6b054e0cf50f77fd849b2a1 /src/util
parent2612bc83c57d3bc36d6042db14d898324c0091ff (diff)
More debug information
Diffstat (limited to 'src/util')
-rw-r--r--src/util/mutex.c7
1 files changed, 7 insertions, 0 deletions
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)