From 406e2f168ea922698a861333fb70aad7ae4bc8fc Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Mon, 10 May 2004 11:07:21 +0000 Subject: [PATCH] - Fix a typo in a printf(). [1] - Fix some other style bugs while I'm here. Submitted by: Koop Mast [1] Fixes PR: sparc64/66448 [1] --- sys/sparc64/sparc64/counter.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/sparc64/sparc64/counter.c b/sys/sparc64/sparc64/counter.c index 19bffef94f4..5646507bccc 100644 --- a/sys/sparc64/sparc64/counter.c +++ b/sys/sparc64/sparc64/counter.c @@ -72,14 +72,14 @@ sparc64_counter_init(bus_space_tag_t tag, bus_space_handle_t handle, struct timecounter *tc; struct ct_softc *sc; - printf("initialializing counter-timer\n"); + printf("initializing counter-timer\n"); /* * Turn off interrupts from both counters. Set the limit to the maximum * value (although that should not change anything with CTLR_INTEN and * CTLR_PERIODIC off). */ - bus_space_write_8(tag, handle, offset + CTR_CT0 + CTR_LIMIT - , COUNTER_MASK); + bus_space_write_8(tag, handle, offset + CTR_CT0 + CTR_LIMIT, + COUNTER_MASK); bus_space_write_8(tag, handle, offset + CTR_CT1 + CTR_LIMIT, COUNTER_MASK); /* Register as a time counter. */ @@ -97,7 +97,7 @@ sparc64_counter_init(bus_space_tag_t tag, bus_space_handle_t handle, tc_init(tc); } -static unsigned +static unsigned int counter_get_timecount(struct timecounter *tc) { struct ct_softc *sc; @@ -106,4 +106,3 @@ counter_get_timecount(struct timecounter *tc) return (bus_space_read_8(sc->sc_tag, sc->sc_handle, sc->sc_offset) & COUNTER_MASK); } -