Skip to content

Commit

Permalink
Fix compile error with option DEBUG. This is fallout from some long-ago
Browse files Browse the repository at this point in the history
INTRNG refactoring that didn't get caught at the time because code in a
debugf() statement isn't compiled unless DEBUG is defined.

PR:		221557
  • Loading branch information
ian authored and ian committed Aug 16, 2017
1 parent 754d087 commit 03be283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/kern/subr_intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,14 +1031,14 @@ intr_setup_irq(device_t dev, struct resource *res, driver_filter_t filt,
if (flags & INTR_SOLO) {
error = iscr_setup_filter(isrc, name, (intr_irq_filter_t *)filt,
arg, cookiep);
debugf("irq %u setup filter error %d on %s\n", irq, error,
debugf("irq %u setup filter error %d on %s\n", isrc->isrc_irq, error,
name);
} else
#endif
{
error = isrc_add_handler(isrc, name, filt, hand, arg, flags,
cookiep);
debugf("irq %u add handler error %d on %s\n", irq, error, name);
debugf("irq %u add handler error %d on %s\n", isrc->isrc_irq, error, name);
}
if (error != 0)
return (error);
Expand Down

0 comments on commit 03be283

Please sign in to comment.