Add "" around mutex name to make message less confusing.
This commit is contained in:
parent
d8e97e1949
commit
f207168a73
@ -915,7 +915,7 @@ mtx_init(struct mtx *m, const char *name, const char *type, int opts)
|
||||
|
||||
lock = &m->mtx_object;
|
||||
KASSERT((lock->lo_flags & LO_INITIALIZED) == 0,
|
||||
("mutex %s %p already initialized", name, m));
|
||||
("mutex \"%s\" %p already initialized", name, m));
|
||||
bzero(m, sizeof(*m));
|
||||
if (opts & MTX_SPIN)
|
||||
lock->lo_class = &lock_class_mtx_spin;
|
||||
|
@ -915,7 +915,7 @@ mtx_init(struct mtx *m, const char *name, const char *type, int opts)
|
||||
|
||||
lock = &m->mtx_object;
|
||||
KASSERT((lock->lo_flags & LO_INITIALIZED) == 0,
|
||||
("mutex %s %p already initialized", name, m));
|
||||
("mutex \"%s\" %p already initialized", name, m));
|
||||
bzero(m, sizeof(*m));
|
||||
if (opts & MTX_SPIN)
|
||||
lock->lo_class = &lock_class_mtx_spin;
|
||||
|
Loading…
Reference in New Issue
Block a user