From da7d05d5adde2e1ed6553cd814bb16a8d15f5c6c Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Mon, 25 Dec 2006 15:44:35 +0000 Subject: [PATCH] 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 --- apps/debug_menu.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) 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); } }