diff options
author | mjacob <mjacob@FreeBSD.org> | 2007-06-10 15:46:34 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2007-06-10 15:46:34 +0000 |
commit | 7c6891be0ffe32d2918c4b830f90ce3028dc9e22 (patch) | |
tree | 89abbdd505ddff8ff7d60f552eb2f0caca5391a7 /sys/dev/sound/pcm/dsp.c | |
parent | 3edec2bcc5c96a4393daca590e2474960555649a (diff) | |
download | FreeBSD-src-7c6891be0ffe32d2918c4b830f90ce3028dc9e22.zip FreeBSD-src-7c6891be0ffe32d2918c4b830f90ce3028dc9e22.tar.gz |
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
Diffstat (limited to 'sys/dev/sound/pcm/dsp.c')
-rw-r--r-- | sys/dev/sound/pcm/dsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c index 90453c1..93ba6a4 100644 --- a/sys/dev/sound/pcm/dsp.c +++ b/sys/dev/sound/pcm/dsp.c @@ -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); |