mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
trivial optimization: use nameunit here.
This commit is contained in:
parent
0c220814d1
commit
fbe1513849
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118899
@ -789,7 +789,7 @@ cbb_attach(device_t brdev)
|
||||
|
||||
/* Start the thread */
|
||||
if (kthread_create(cbb_event_thread, sc, &sc->event_thread, 0, 0,
|
||||
"%s%d", device_get_name(brdev), device_get_unit(brdev))) {
|
||||
"%s", device_get_nameunit(brdev))) {
|
||||
device_printf(brdev, "unable to create event thread.\n");
|
||||
panic("cbb_create_event_thread");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user