Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147797597
D19675.id55340.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19675.id55340.diff
View Options
Index: sys/kern/kern_intr.c
===================================================================
--- sys/kern/kern_intr.c
+++ sys/kern/kern_intr.c
@@ -209,10 +209,20 @@
}
/*
- * If the handler names were too long, add +'s to indicate missing
- * names. If we run out of room and still have +'s to add, change
- * the last character from a + to a *.
+ * If there is only one handler whose name is too long, just copy in as
+ * much of the end of the name (includes the unit number) as will fit.
+ * Otherwise, we have multiple handlers and not all of the names will
+ * fit. Add +'s to indicate missing names. If we run out of room and
+ * still have +'s to add, change the last character from a + to a *.
*/
+ if (missed == 1 && space == 1) {
+ ih = CK_SLIST_FIRST(&ie->ie_handlers);
+ missed = strlen(ie->ie_fullname) + strlen(ih->ih_name) + 1 -
+ sizeof(ie->ie_fullname);
+ strcat(ie->ie_fullname, " ");
+ strcat(ie->ie_fullname, &ih->ih_name[missed]);
+ missed = 0;
+ }
last = &ie->ie_fullname[sizeof(ie->ie_fullname) - 2];
while (missed-- > 0) {
if (strlen(ie->ie_fullname) + 1 == sizeof(ie->ie_fullname)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 14, 5:59 PM (4 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29678945
Default Alt Text
D19675.id55340.diff (1 KB)
Attached To
Mode
D19675: Truncate a too-long interrupt handler name when there is only one handler.
Attached
Detach File
Event Timeline
Log In to Comment