Module Name:    src
Committed By:   jmcneill
Date:           Thu Jun 29 21:34:50 UTC 2017

Modified Files:
        src/sys/arch/arm/sunxi: sunxi_ccu.c

Log Message:
Print clocks with aprint_debug


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/sunxi/sunxi_ccu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/sunxi/sunxi_ccu.c
diff -u src/sys/arch/arm/sunxi/sunxi_ccu.c:1.3 src/sys/arch/arm/sunxi/sunxi_ccu.c:1.4
--- src/sys/arch/arm/sunxi/sunxi_ccu.c:1.3	Thu Jun 29 10:53:59 2017
+++ src/sys/arch/arm/sunxi/sunxi_ccu.c	Thu Jun 29 21:34:50 2017
@@ -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 <[email protected]>
@@ -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 @@ sunxi_ccu_print(struct sunxi_ccu_softc *
 		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));
 	}
 }

Reply via email to