Fix panic message to indicate right action that was improper.

Reviewed by: scottl, ken
Differential Revision: https://reviews.freebsd.org/D22295
This commit is contained in:
Warner Losh 2019-11-11 17:36:42 +00:00
parent 2961e6efeb
commit fb6ea34a3a

View File

@ -1686,7 +1686,7 @@ da_periph_release_locked(struct cam_periph *periph, da_ref_token token)
da_ref_text[token], token);
cnt = atomic_fetchadd_int(&softc->ref_flags[token], -1);
if (cnt != 1)
panic("Unholding %d with cnt = %d", token, cnt);
panic("releasing (locked) %d with cnt = %d", token, cnt);
cam_periph_release_locked(periph);
}