Date: Sun, 27 Jan 2013 20:16:51 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r246000 - head/sys/arm/arm Message-ID: <201301272016.r0RKGpjw071527@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301272016.r0RKGpjw071527>