fix format instead of casting wildly
This commit is contained in:
parent
6df24a7d9e
commit
345fb25dfd
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -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;
|
||||
}
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user