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 self.enabled = True
# Add ------------------------------------------------------------------------------------------ # Add ------------------------------------------------------------------------------------------
def add(self, *args, **kwargs): def add(self, name, *args, **kwargs):
if self.enabled: if self.enabled:
SoCLocHandler.add(self, *args, **kwargs) SoCLocHandler.add(self, name, *args, **kwargs)
else: else:
self.logger.error("Attempted to add an {} but SoC does not support {}.".format( self.logger.error("Attempted to add {} IRQ but SoC does {}.".format(
colorer("IRQ", color="red"), colorer("IRQs"))) colorer(name), colorer("not support IRQs", color="red")))
raise raise
# Str ------------------------------------------------------------------------------------------ # Str ------------------------------------------------------------------------------------------