summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-12-25 15:44:35 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-12-25 15:44:35 +0000
commitda7d05d5adde2e1ed6553cd814bb16a8d15f5c6c (patch)
treee053165347e14e7af458ffe19102878a2a393b40
parentb47bc8abb9130eb08aaff7a7b685d786b179000a (diff)
downloadrockbox-da7d05d5adde2e1ed6553cd814bb16a8d15f5c6c.zip
rockbox-da7d05d5adde2e1ed6553cd814bb16a8d15f5c6c.tar.gz
rockbox-da7d05d5adde2e1ed6553cd814bb16a8d15f5c6c.tar.bz2
rockbox-da7d05d5adde2e1ed6553cd814bb16a8d15f5c6c.tar.xz
Make debug menu compile without priority scheduling and with multicore
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11838 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/debug_menu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index e21d203..a63eb7d 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -142,11 +142,18 @@ static bool dbg_os(void)
usage = thread_stack_usage(thread);
status = thread_get_status(thread);
+# ifdef HAVE_PRIORITY_SCHEDULING
snprintf(buf, 32, "(%d) %c%c %d %s: %d%%", core,
(status == STATE_RUNNING) ? '*' : ' ',
thread_status_char(status),
cores[CURRENT_CORE].threads[i].priority,
cores[core].threads[i].name, usage);
+# else
+ snprintf(buf, 32, "(%d) %c%c %s: %d%%", core,
+ (status == STATE_RUNNING) ? '*' : ' ',
+ thread_status_char(status),
+ cores[core].threads[i].name, usage);
+# endif
lcd_puts(0, ++line, buf);
}
}