Source-Changes-HG archive

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

[src/trunk]: src/sys/kern fix compilation with TODR_DEBUG



details:   https://anonhg.NetBSD.org/src/rev/b4c791534589
branches:  trunk
changeset: 803093:b4c791534589
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Oct 12 16:23:20 2014 +0000

description:
fix compilation with TODR_DEBUG

diffstat:

 sys/kern/kern_todr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c9253cb7b47d -r b4c791534589 sys/kern/kern_todr.c
--- a/sys/kern/kern_todr.c      Sun Oct 12 15:54:19 2014 +0000
+++ b/sys/kern/kern_todr.c      Sun Oct 12 16:23:20 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_todr.c,v 1.35 2013/08/29 01:05:29 tls Exp $       */
+/*     $NetBSD: kern_todr.c,v 1.36 2014/10/12 16:23:20 jmcneill Exp $  */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_todr.c,v 1.35 2013/08/29 01:05:29 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_todr.c,v 1.36 2014/10/12 16:23:20 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -226,7 +226,7 @@
        printf("%s: rtc_offset = %d\n", prefix, rtc_offset);
        printf("%s: %4u/%02u/%02u %02u:%02u:%02u, (wday %d) (epoch %u.%06u)\n",
            prefix,
-           dt->dt_year, dt->dt_mon, dt->dt_day,
+           (unsigned)dt->dt_year, dt->dt_mon, dt->dt_day,
            dt->dt_hour, dt->dt_min, dt->dt_sec,
            dt->dt_wday, (unsigned)tvp->tv_sec, (unsigned)tvp->tv_usec);
 }



Home | Main Index | Thread Index | Old Index