Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm32/dev Print leading zero when displaying the da...



details:   https://anonhg.NetBSD.org/src/rev/0cb8cb494062
branches:  trunk
changeset: 480256:0cb8cb494062
user:      mark <mark%NetBSD.org@localhost>
date:      Fri Jan 07 23:43:45 2000 +0000

description:
Print leading zero when displaying the date in resettodr().
Fixes PR9129.

diffstat:

 sys/arch/arm32/dev/todclock.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r cd6ac91a26e2 -r 0cb8cb494062 sys/arch/arm32/dev/todclock.c
--- a/sys/arch/arm32/dev/todclock.c     Fri Jan 07 23:01:02 2000 +0000
+++ b/sys/arch/arm32/dev/todclock.c     Fri Jan 07 23:43:45 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: todclock.c,v 1.4 1998/04/19 03:54:24 mark Exp $        */
+/*     $NetBSD: todclock.c,v 1.5 2000/01/07 23:43:45 mark Exp $        */
 
 /*
  * Copyright (c) 1994-1997 Mark Brinicombe.
@@ -243,7 +243,7 @@
        rtc.rtc_centi =
        rtc.rtc_micro = 0;
 
-       printf("resettod: %d/%d/%d%d %d:%d:%d\n", rtc.rtc_day,
+       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);
 



Home | Main Index | Thread Index | Old Index