Restore the irq number to the display string; I fumbled this in the previous

commit while trying to make the code internally self-consistant.

Approved by:	cognet (mentor)
Obtained from:	Christoph Mallon
This commit is contained in:
Ian Lepore 2013-01-27 20:16:50 +00:00
parent 651c11660d
commit ecef37500f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246000

View File

@ -72,9 +72,10 @@ arm_intrnames_init(void)
{
int i;
for (i = 0; i < NIRQ; ++i)
for (i = 0; i < NIRQ; ++i) {
snprintf(&intrnames[i * INTRNAME_LEN], INTRNAME_LEN, "%-*s",
INTRNAME_LEN - 1, "");
}
}
void
@ -94,8 +95,8 @@ arm_setup_irqhandler(const char *name, driver_filter_t *filt,
if (error)
return;
intr_events[irq] = event;
snprintf(&intrnames[irq * INTRNAME_LEN], INTRNAME_LEN, "%-*s",
INTRNAME_LEN - 1, name);
snprintf(&intrnames[irq * INTRNAME_LEN], INTRNAME_LEN,
"irq%d: %-*s", irq, INTRNAME_LEN - 1, name);
}
intr_event_add_handler(event, name, filt, hand, arg,
intr_priority(flags), flags, cookiep);