Add "" around mutex name to make message less confusing.

This commit is contained in:
phk 2003-05-31 21:11:01 +00:00
parent d8e97e1949
commit f207168a73
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;