svn commit: r246000 - head/sys/arm/arm

Ian Lepore ian at FreeBSD.org
Sun Jan 27 20:16:52 UTC 2013


Author: ian
Date: Sun Jan 27 20:16:50 2013
New Revision: 246000
URL: http://svnweb.freebsd.org/changeset/base/246000

Log:
  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

Modified:
  head/sys/arm/arm/intr.c

Modified: head/sys/arm/arm/intr.c
==============================================================================
--- head/sys/arm/arm/intr.c	Sun Jan 27 20:10:29 2013	(r245999)
+++ head/sys/arm/arm/intr.c	Sun Jan 27 20:16:50 2013	(r246000)
@@ -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, d
 		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);


More information about the svn-src-all mailing list