From ac0fc74d56e6d0a935ea2ab5a2641cc1b2c63de9 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 21 Sep 2016 00:06:39 +0100 Subject: [PATCH] imx233: don't print disabled IRQs in debug screen There are lot IRQ and most are unused most of the time, this is annoying on devices with small screens. Change-Id: I7f3453f2768b8e35a5a367fbcf1e4cf3cf73bcd7 --- firmware/target/arm/imx233/debug-imx233.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c index e33f2ab1ad..808716916c 100644 --- a/firmware/target/arm/imx233/debug-imx233.c +++ b/firmware/target/arm/imx233/debug-imx233.c @@ -631,13 +631,17 @@ bool dbg_hw_info_icoll(void) } lcd_clear_display(); - for(int i = first_irq, j = 0; i < dbg_irqs_count && j < line_count; i++, j++) + int line = 0; + for(int i = first_irq; i < dbg_irqs_count && line < line_count; i++) { struct imx233_icoll_irq_info_t info = imx233_icoll_get_irq_info(dbg_irqs[i].src); static char prio[4] = {'-', '+', '^', '!'}; - lcd_putsf(0, j, "%c%s", prio[info.priority & 3], dbg_irqs[i].name); if(info.enabled || info.freq > 0) - lcd_putsf(11, j, "%d %d %d", info.freq, info.max_time, info.total_time); + { + lcd_putsf(0, line, "%c%s", prio[info.priority & 3], dbg_irqs[i].name); + lcd_putsf(11, line, "%d %d %d", info.freq, info.max_time, info.total_time); + line++; + } } lcd_update(); yield();