Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/sunxi Print clocks with aprint_debug
details: https://anonhg.NetBSD.org/src/rev/ae23a3803cd8
branches: trunk
changeset: 354786:ae23a3803cd8
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Jun 29 21:34:50 2017 +0000
description:
Print clocks with aprint_debug
diffstat:
sys/arch/arm/sunxi/sunxi_ccu.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 772001216fcf -r ae23a3803cd8 sys/arch/arm/sunxi/sunxi_ccu.c
--- a/sys/arch/arm/sunxi/sunxi_ccu.c Thu Jun 29 20:55:10 2017 +0000
+++ b/sys/arch/arm/sunxi/sunxi_ccu.c Thu Jun 29 21:34:50 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_ccu.c,v 1.3 2017/06/29 10:53:59 jmcneill Exp $ */
+/* $NetBSD: sunxi_ccu.c,v 1.4 2017/06/29 21:34:50 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
#include "opt_fdt_arm.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_ccu.c,v 1.3 2017/06/29 10:53:59 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_ccu.c,v 1.4 2017/06/29 21:34:50 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -331,11 +331,13 @@
default: type = "???"; break;
}
- printf(" %-12s %2s %-12s %-7s ",
+ aprint_debug_dev(sc->sc_dev,
+ "%3d %-12s %2s %-12s %-7s %10d Hz\n",
+ i,
clk->base.name,
clkp_parent ? "<-" : "",
clkp_parent ? clkp_parent->name : "",
- type);
- printf("%10d Hz\n", clk_get_rate(&clk->base));
+ type,
+ clk_get_rate(&clk->base));
}
}
Home |
Main Index |
Thread Index |
Old Index