Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/samsung Dump clock tree with aprint_debug inste...



details:   https://anonhg.NetBSD.org/src/rev/a19654b49737
branches:  trunk
changeset: 362961:a19654b49737
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Jul 03 16:30:13 2018 +0000

description:
Dump clock tree with aprint_debug instead of printf

diffstat:

 sys/arch/arm/samsung/exynos5422_clock.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r caa2e7016e6c -r a19654b49737 sys/arch/arm/samsung/exynos5422_clock.c
--- a/sys/arch/arm/samsung/exynos5422_clock.c   Tue Jul 03 16:22:48 2018 +0000
+++ b/sys/arch/arm/samsung/exynos5422_clock.c   Tue Jul 03 16:30:13 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exynos5422_clock.c,v 1.9 2018/07/03 16:06:41 jmcneill Exp $ */
+/* $NetBSD: exynos5422_clock.c,v 1.10 2018/07/03 16:30:13 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "locators.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exynos5422_clock.c,v 1.9 2018/07/03 16:06:41 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exynos5422_clock.c,v 1.10 2018/07/03 16:30:13 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -648,9 +648,9 @@
 static void
 exynos5422_clock_print_header(void)
 {
-       printf("  %-10s %2s %-10s %-5s %10s\n",
+       aprint_debug("  %-10s %2s %-10s %-5s %10s\n",
            "clock", "", "parent", "type", "rate");
-       printf("  %-10s %2s %-10s %-5s %10s\n",
+       aprint_debug("  %-10s %2s %-10s %-5s %10s\n",
            "=====", "", "======", "====", "====");
 }
 
@@ -683,7 +683,7 @@
        clk_parent = exynos5422_clock_get_parent(sc, &eclk->base);
        eclk_parent = (struct exynos_clk *)clk_parent;
 
-       printf("  %-10s %2s %-10s %-5s %10d Hz\n",
+       aprint_debug("  %-10s %2s %-10s %-5s %10d Hz\n",
            eclk->base.name,
            eclk_parent ? "<-" : "",
            eclk_parent ? eclk_parent->base.name : "",



Home | Main Index | Thread Index | Old Index