From 345fb25dfd1088db8bcfb765fdd9c0b0224cac7e Mon Sep 17 00:00:00 2001 From: macallan Date: Sun, 11 Jan 2009 18:26:21 +0000 Subject: [PATCH] fix format instead of casting wildly --- sys/arch/macppc/dev/cuda.c | 6 +++--- sys/arch/macppc/dev/pmu.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arch/macppc/dev/cuda.c b/sys/arch/macppc/dev/cuda.c index b2263462f064..8c7f2d7bcdad 100644 --- a/sys/arch/macppc/dev/cuda.c +++ b/sys/arch/macppc/dev/cuda.c @@ -1,4 +1,4 @@ -/* $NetBSD: cuda.c,v 1.11 2009/01/11 18:02:39 christos Exp $ */ +/* $NetBSD: cuda.c,v 1.12 2009/01/11 18:26:21 macallan Exp $ */ /*- * Copyright (c) 2006 Michael Lorenz @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cuda.c,v 1.11 2009/01/11 18:02:39 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cuda.c,v 1.12 2009/01/11 18:26:21 macallan Exp $"); #include #include @@ -767,7 +767,7 @@ cuda_todr_get(todr_chip_handle_t tch, volatile struct timeval *tvp) return EIO; tvp->tv_sec = sc->sc_tod - DIFF19041970; - DPRINTF("tod: %lld\n", (long long)tvp->tv_sec); + DPRINTF("tod: %" PRIo64 "\n", tvp->tv_sec); tvp->tv_usec = 0; return 0; } diff --git a/sys/arch/macppc/dev/pmu.c b/sys/arch/macppc/dev/pmu.c index e732a5d92d4c..db8fe73ae49e 100644 --- a/sys/arch/macppc/dev/pmu.c +++ b/sys/arch/macppc/dev/pmu.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmu.c,v 1.14 2009/01/11 17:04:37 macallan Exp $ */ +/* $NetBSD: pmu.c,v 1.15 2009/01/11 18:26:21 macallan Exp $ */ /*- * Copyright (c) 2006 Michael Lorenz @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pmu.c,v 1.14 2009/01/11 17:04:37 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmu.c,v 1.15 2009/01/11 18:26:21 macallan Exp $"); #include #include @@ -694,7 +694,7 @@ pmu_todr_get(todr_chip_handle_t tch, volatile struct timeval *tvp) memcpy(&sec, &resp[1], 4); tvp->tv_sec = sec - DIFF19041970; - DPRINTF("tod: %ld\n", (uint32_t)tvp->tv_sec); + DPRINTF("tod: %" PRIo64 "\n", tvp->tv_sec); tvp->tv_usec = 0; return 0; }