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:
parent
3edec2bcc5
commit
7c6891be0f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user