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 use %u for u_int, rather than %d; correct...
details: https://anonhg.NetBSD.org/src/rev/35144471a86f
branches: trunk
changeset: 994956:35144471a86f
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu Nov 29 20:33:09 2018 +0000
description:
use %u for u_int, rather than %d; corrects printing of frequencies at or above 2**31 Hz
diffstat:
sys/arch/arm/sunxi/sunxi_ccu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 316b7183564a -r 35144471a86f sys/arch/arm/sunxi/sunxi_ccu.c
--- a/sys/arch/arm/sunxi/sunxi_ccu.c Thu Nov 29 19:55:20 2018 +0000
+++ b/sys/arch/arm/sunxi/sunxi_ccu.c Thu Nov 29 20:33:09 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_ccu.c,v 1.12 2018/09/21 12:04:07 skrll Exp $ */
+/* $NetBSD: sunxi_ccu.c,v 1.13 2018/11/29 20:33:09 jakllsch Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
#include "opt_console.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_ccu.c,v 1.12 2018/09/21 12:04:07 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_ccu.c,v 1.13 2018/11/29 20:33:09 jakllsch Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -369,6 +369,6 @@
clkp_parent ? "<-" : "",
clkp_parent ? clkp_parent->name : "",
type);
- aprint_debug("%10d Hz\n", clk_get_rate(&clk->base));
+ aprint_debug("%10u Hz\n", clk_get_rate(&clk->base));
}
}
Home |
Main Index |
Thread Index |
Old Index