diff options
author | mux <mux@FreeBSD.org> | 2004-05-10 11:07:21 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2004-05-10 11:07:21 +0000 |
commit | 508179cc6ec4953a9fa05d7f215ab66cba914574 (patch) | |
tree | dcd5d4eaca924b9c4c103454ee76f983ae8612e9 /sys/sparc64 | |
parent | 3ac51d74e6427e98297d7eba1f4ce9f4da3cf54e (diff) | |
download | FreeBSD-src-508179cc6ec4953a9fa05d7f215ab66cba914574.zip FreeBSD-src-508179cc6ec4953a9fa05d7f215ab66cba914574.tar.gz |
- Fix a typo in a printf(). [1]
- Fix some other style bugs while I'm here.
Submitted by: Koop Mast <kwm@rainbow-runner.nl> [1]
Fixes PR: sparc64/66448 [1]
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/counter.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/sparc64/sparc64/counter.c b/sys/sparc64/sparc64/counter.c index 19bffef..5646507 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); } - |