Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/dev Adapt formats for debug printfs to clock_su...



details:   https://anonhg.NetBSD.org/src/rev/442d2ae99945
branches:  trunk
changeset: 332129:442d2ae99945
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Sep 08 10:00:18 2014 +0000

description:
Adapt formats for debug printfs to clock_subr type changes.

diffstat:

 sys/arch/sh3/dev/rtc.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r c7c1fc534d27 -r 442d2ae99945 sys/arch/sh3/dev/rtc.c
--- a/sys/arch/sh3/dev/rtc.c    Mon Sep 08 07:57:36 2014 +0000
+++ b/sys/arch/sh3/dev/rtc.c    Mon Sep 08 10:00:18 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtc.c,v 1.8 2010/05/22 15:51:32 tsutsui Exp $ */
+/*     $NetBSD: rtc.c,v 1.9 2014/09/08 10:00:18 martin Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtc.c,v 1.8 2010/05/22 15:51:32 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtc.c,v 1.9 2014/09/08 10:00:18 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -208,8 +208,8 @@
 
 #ifdef RTC_DEBUG
        aprint_debug_dev(sc->sc_dev,
-                        "gettime: %04d-%02d-%02d %02d:%02d:%02d\n",
-                        dt->dt_year, dt->dt_mon, dt->dt_day,
+                        "gettime: %04lu-%02d-%02d %02d:%02d:%02d\n",
+                        (unsigned long)dt->dt_year, dt->dt_mon, dt->dt_day,
                         dt->dt_hour, dt->dt_min, dt->dt_sec);
 
        if (!sc->sc_valid)
@@ -262,8 +262,8 @@
 
 #ifdef RTC_DEBUG
        aprint_debug_dev(sc->sc_dev,
-                        "settime: %04d-%02d-%02d %02d:%02d:%02d\n",
-                        dt->dt_year, dt->dt_mon, dt->dt_day,
+                        "settime: %04lu-%02d-%02d %02d:%02d:%02d\n",
+                        (unsigned long)dt->dt_year, dt->dt_mon, dt->dt_day,
                         dt->dt_hour, dt->dt_min, dt->dt_sec);
 #endif
 



Home | Main Index | Thread Index | Old Index