diff options
| author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-09-21 00:06:39 +0100 |
|---|---|---|
| committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-12-12 13:25:41 +0100 |
| commit | ac0fc74d56e6d0a935ea2ab5a2641cc1b2c63de9 (patch) | |
| tree | ced3ab0c96dffcf1fd76ef532d828e34c68cff79 | |
| parent | 17277fa1bfb21acf1b880b15db0e799bc623c276 (diff) | |
| download | rockbox-ac0fc74d56e6d0a935ea2ab5a2641cc1b2c63de9.zip rockbox-ac0fc74d56e6d0a935ea2ab5a2641cc1b2c63de9.tar.gz rockbox-ac0fc74d56e6d0a935ea2ab5a2641cc1b2c63de9.tar.bz2 rockbox-ac0fc74d56e6d0a935ea2ab5a2641cc1b2c63de9.tar.xz | |
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
| -rw-r--r-- | firmware/target/arm/imx233/debug-imx233.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c index e33f2ab..8087169 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(); |