integration/soc/irq: improve error message.

This commit is contained in:
Florent Kermarrec 2020-12-03 09:47:50 +01:00
parent 8eecbd7b57
commit 42e7b8d35a
1 changed files with 4 additions and 4 deletions

View File

@ -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 ------------------------------------------------------------------------------------------