summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2007-06-10 15:46:34 +0000
committermjacob <mjacob@FreeBSD.org>2007-06-10 15:46:34 +0000
commit7c6891be0ffe32d2918c4b830f90ce3028dc9e22 (patch)
tree89abbdd505ddff8ff7d60f552eb2f0caca5391a7
parent3edec2bcc5c96a4393daca590e2474960555649a (diff)
downloadFreeBSD-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
-rw-r--r--sys/dev/sound/pcm/dsp.c3
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);
OpenPOWER on IntegriCloud