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 /firmware/target/arm/imx233 | |
parent | 17277fa1bfb21acf1b880b15db0e799bc623c276 (diff) | |
download | rockbox-ac0fc74d56e6d0a935ea2ab5a2641cc1b2c63de9.tar.gz rockbox-ac0fc74d56e6d0a935ea2ab5a2641cc1b2c63de9.zip |
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
Diffstat (limited to 'firmware/target/arm/imx233')
-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 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) | |||
631 | } | 631 | } |
632 | 632 | ||
633 | lcd_clear_display(); | 633 | lcd_clear_display(); |
634 | for(int i = first_irq, j = 0; i < dbg_irqs_count && j < line_count; i++, j++) | 634 | int line = 0; |
635 | for(int i = first_irq; i < dbg_irqs_count && line < line_count; i++) | ||
635 | { | 636 | { |
636 | struct imx233_icoll_irq_info_t info = imx233_icoll_get_irq_info(dbg_irqs[i].src); | 637 | struct imx233_icoll_irq_info_t info = imx233_icoll_get_irq_info(dbg_irqs[i].src); |
637 | static char prio[4] = {'-', '+', '^', '!'}; | 638 | static char prio[4] = {'-', '+', '^', '!'}; |
638 | lcd_putsf(0, j, "%c%s", prio[info.priority & 3], dbg_irqs[i].name); | ||
639 | if(info.enabled || info.freq > 0) | 639 | if(info.enabled || info.freq > 0) |
640 | lcd_putsf(11, j, "%d %d %d", info.freq, info.max_time, info.total_time); | 640 | { |
641 | lcd_putsf(0, line, "%c%s", prio[info.priority & 3], dbg_irqs[i].name); | ||
642 | lcd_putsf(11, line, "%d %d %d", info.freq, info.max_time, info.total_time); | ||
643 | line++; | ||
644 | } | ||
641 | } | 645 | } |
642 | lcd_update(); | 646 | lcd_update(); |
643 | yield(); | 647 | yield(); |