Subject: port-acorn32/15314: Printing time to message buffer is pointless.
To: None <gnats-bugs@gnats.netbsd.org>
From: Mike Pumford <mpumford@black-star.demon.co.uk>
List: netbsd-bugs
Date: 01/20/2002 14:04:53
>Number:         15314
>Category:       port-acorn32
>Synopsis:       Printing time to message buffer is pointless.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-acorn32-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 20 06:05:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Mike Pumford
>Release:        NetBSD 1.5Z
>Organization:
None
>Environment:
System: NetBSD black-star.demon.co.uk 1.5Z NetBSD 1.5Z (BSTAR_WS) #0: Wed Dec 12 00:03:05 GMT 2001 mpumford@black-star.demon.co.uk:/usr/src/netbsd/sys/arch/acorn32/compile/BSTAR_WS acorn32
Architecture: arm32
Machine: acorn32
>Description:
When using a tool like ntpd it is very irritating that the kernel prints
the time everytime ntpd rewrites the hardware clock. This is really a
companion to port-acorn32/15313. The i386 port doesn't bother with this
time printing (and never has). I suspect it was only added because the
CMOS clock writing didn't work properly.
>How-To-Repeat:
	Run ntpd to keep time synchronised with an NTP server or 
	do set the time and date repeatedly.
>Fix:
Index: todclock.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/arm/iomd/todclock.c,v
retrieving revision 1.1
diff -u -r1.1 todclock.c
--- todclock.c  2001/10/05 22:27:42     1.1
+++ todclock.c  2002/01/20 13:44:08
@@ -247,10 +247,6 @@
        rtc.rtc_centi =
        rtc.rtc_micro = 0;
 
-       printf("resettod: %02d/%02d/%02d%02d %02d:%02d:%02d\n", rtc.rtc_day,
-           rtc.rtc_mon, rtc.rtc_cen, rtc.rtc_year, rtc.rtc_hour,
-           rtc.rtc_min, rtc.rtc_sec);
-
        s = splclock();
        todclock_sc->sc_rtc_write(todclock_sc->sc_rtc_arg, &rtc);
        (void)splx(s);

>Release-Note:
>Audit-Trail:
>Unformatted: