diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index e21d203f7a..a63eb7de6d 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -142,11 +142,18 @@ static bool dbg_os(void) | |||
142 | usage = thread_stack_usage(thread); | 142 | usage = thread_stack_usage(thread); |
143 | status = thread_get_status(thread); | 143 | status = thread_get_status(thread); |
144 | 144 | ||
145 | # ifdef HAVE_PRIORITY_SCHEDULING | ||
145 | snprintf(buf, 32, "(%d) %c%c %d %s: %d%%", core, | 146 | snprintf(buf, 32, "(%d) %c%c %d %s: %d%%", core, |
146 | (status == STATE_RUNNING) ? '*' : ' ', | 147 | (status == STATE_RUNNING) ? '*' : ' ', |
147 | thread_status_char(status), | 148 | thread_status_char(status), |
148 | cores[CURRENT_CORE].threads[i].priority, | 149 | cores[CURRENT_CORE].threads[i].priority, |
149 | cores[core].threads[i].name, usage); | 150 | cores[core].threads[i].name, usage); |
151 | # else | ||
152 | snprintf(buf, 32, "(%d) %c%c %s: %d%%", core, | ||
153 | (status == STATE_RUNNING) ? '*' : ' ', | ||
154 | thread_status_char(status), | ||
155 | cores[core].threads[i].name, usage); | ||
156 | # endif | ||
150 | lcd_puts(0, ++line, buf); | 157 | lcd_puts(0, ++line, buf); |
151 | } | 158 | } |
152 | } | 159 | } |