Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/rockchip Remove debug printfs



details:   https://anonhg.NetBSD.org/src/rev/6a0cd8d76d92
branches:  trunk
changeset: 968160:6a0cd8d76d92
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jan 04 13:54:04 2020 +0000

description:
Remove debug printfs

diffstat:

 sys/arch/arm/rockchip/rk_i2s.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 3d93f4a7a8a4 -r 6a0cd8d76d92 sys/arch/arm/rockchip/rk_i2s.c
--- a/sys/arch/arm/rockchip/rk_i2s.c    Sat Jan 04 13:32:32 2020 +0000
+++ b/sys/arch/arm/rockchip/rk_i2s.c    Sat Jan 04 13:54:04 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_i2s.c,v 1.1 2019/11/16 13:24:03 jmcneill Exp $ */
+/* $NetBSD: rk_i2s.c,v 1.2 2020/01/04 13:54:04 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rk_i2s.c,v 1.1 2019/11/16 13:24:03 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_i2s.c,v 1.2 2020/01/04 13:54:04 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -182,7 +182,6 @@
        ckr = RD4(sc, I2S_CKR);
        if ((ckr & CKR_MSS) == 0) {
                const u_int mclk_rate = clk_get_rate(sc->sc_clk);
-               device_printf(sc->sc_dev, "%s: sysclk rate %u Hz\n", __func__, mclk_rate);
                const u_int bclk_rate = 2 * 32 * RK_I2S_SAMPLE_RATE;
                const u_int bclk_div = mclk_rate / bclk_rate;
                const u_int lrck_div = bclk_rate / RK_I2S_SAMPLE_RATE;
@@ -430,7 +429,6 @@
        struct rk_i2s_softc * const sc = audio_dai_private(dai);
        int error;
 
-       device_printf(sc->sc_dev, "set sysclk %u Hz\n", rate);
        error = clk_set_rate(sc->sc_clk, rate);
        if (error != 0) {
                device_printf(sc->sc_dev, "failed to set sysclk to %u Hz: %d\n",



Home | Main Index | Thread Index | Old Index