Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci cs4281_set_params: fix printf format.



details:   https://anonhg.NetBSD.org/src/rev/55abdb2f72b3
branches:  trunk
changeset: 581819:55abdb2f72b3
user:      yamt <yamt%NetBSD.org@localhost>
date:      Mon Jun 06 12:08:09 2005 +0000

description:
cs4281_set_params: fix printf format.

diffstat:

 sys/dev/pci/cs4281.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 522df022b733 -r 55abdb2f72b3 sys/dev/pci/cs4281.c
--- a/sys/dev/pci/cs4281.c      Mon Jun 06 11:51:41 2005 +0000
+++ b/sys/dev/pci/cs4281.c      Mon Jun 06 12:08:09 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cs4281.c,v 1.24 2005/02/27 00:27:32 perry Exp $        */
+/*     $NetBSD: cs4281.c,v 1.25 2005/06/06 12:08:09 yamt Exp $ */
 
 /*
  * Copyright (c) 2000 Tatoku Ogaito.  All rights reserved.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs4281.c,v 1.24 2005/02/27 00:27:32 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs4281.c,v 1.25 2005/06/06 12:08:09 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -458,16 +458,18 @@
                p = mode == AUMODE_PLAY ? play : rec;
 
                if (p == play) {
-                       DPRINTFN(5, ("play: sample=%ld precision=%d channels=%d\n",
-                               p->sample_rate, p->precision, p->channels));
+                       DPRINTFN(5,
+                           ("play: sample=%u precision=%u channels=%u\n",
+                           p->sample_rate, p->precision, p->channels));
                        if (p->sample_rate < 6023 || p->sample_rate > 48000 ||
                            (p->precision != 8 && p->precision != 16) ||
                            (p->channels != 1  && p->channels != 2)) {
                                return EINVAL;
                        }
                } else {
-                       DPRINTFN(5, ("rec: sample=%ld precision=%d channels=%d\n",
-                               p->sample_rate, p->precision, p->channels));
+                       DPRINTFN(5,
+                           ("rec: sample=%u precision=%u channels=%u\n",
+                           p->sample_rate, p->precision, p->channels));
                        if (p->sample_rate < 6023 || p->sample_rate > 48000 ||
                            (p->precision != 8 && p->precision != 16) ||
                            (p->channels != 1 && p->channels != 2)) {



Home | Main Index | Thread Index | Old Index