Cast len to be a uintmax_t and make format in KASSERT match so as

to avoid different sizes on different platforms types of complaints.

Reviewed by:	Ariff
This commit is contained in:
mjacob 2007-06-10 15:46:34 +00:00
parent 3edec2bcc5
commit 7c6891be0f

View File

@ -1841,7 +1841,8 @@ dsp_unit2name(char *buf, size_t len, int unit)
{
int i, dtype;
KASSERT(buf != NULL && len != 0, ("bogus buf=%p len=%u", buf, len));
KASSERT(buf != NULL && len != 0,
("bogus buf=%p len=%ju", buf, (uintmax_t)len));
dtype = snd_unit2d(unit);