1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Make stray irq counters have format alike to other counters. Unified format

makes string processing (for example by `systat -vm`) easier.
This commit is contained in:
Alexander Motin 2010-07-01 21:58:46 +00:00
parent cb18cb4d7c
commit b7bc6aa726
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209638
2 changed files with 4 additions and 4 deletions

View File

@ -346,8 +346,8 @@ intrcnt_register(struct intsrc *is)
mtx_lock_spin(&intrcnt_lock);
is->is_index = intrcnt_index;
intrcnt_index += 2;
snprintf(straystr, MAXCOMLEN + 1, "stray irq%d",
is->is_pic->pic_vector(is));
snprintf(straystr, MAXCOMLEN + 1, "%s stray",
is->is_event->ie_name);
intrcnt_updatename(is);
is->is_count = &intrcnt[is->is_index];
intrcnt_setname(straystr, is->is_index + 1);

View File

@ -334,8 +334,8 @@ intrcnt_register(struct intsrc *is)
mtx_lock_spin(&intrcnt_lock);
is->is_index = intrcnt_index;
intrcnt_index += 2;
snprintf(straystr, MAXCOMLEN + 1, "stray irq%d",
is->is_pic->pic_vector(is));
snprintf(straystr, MAXCOMLEN + 1, "%s stray",
is->is_event->ie_name);
intrcnt_updatename(is);
is->is_count = &intrcnt[is->is_index];
intrcnt_setname(straystr, is->is_index + 1);