From 42e7b8d35ad8b59ba6b2ed444b1ba8566c4bdebe Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 3 Dec 2020 09:47:50 +0100 Subject: [PATCH] integration/soc/irq: improve error message. --- litex/soc/integration/soc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 11670b4a2..ed5867cbe 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -643,12 +643,12 @@ class SoCIRQHandler(SoCLocHandler): self.enabled = True # Add ------------------------------------------------------------------------------------------ - def add(self, *args, **kwargs): + def add(self, name, *args, **kwargs): if self.enabled: - SoCLocHandler.add(self, *args, **kwargs) + SoCLocHandler.add(self, name, *args, **kwargs) else: - self.logger.error("Attempted to add an {} but SoC does not support {}.".format( - colorer("IRQ", color="red"), colorer("IRQs"))) + self.logger.error("Attempted to add {} IRQ but SoC does {}.".format( + colorer(name), colorer("not support IRQs", color="red"))) raise # Str ------------------------------------------------------------------------------------------