Source-Changes-HG archive

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

src: fix type confusion on 32 bits



details:   https://anonhg.NetBSD.org/src/rev/bcca20c206cd
branches:  trunk
changeset: 318081:bcca20c206cd
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 11 23:20:15 2018 +0000
description:
fix type confusion on 32 bits

diffstat:

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

diffs (27 lines):

diff -r b10eecca3c1c -r bcca20c206cd sys/kern/subr_prf.c
--- a/sys/kern/subr_prf.c       Wed Apr 11 19:44:47 2018 +0000
+++ b/sys/kern/subr_prf.c       Wed Apr 11 23:20:15 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_prf.c,v 1.166 2018/04/11 15:25:58 christos Exp $  */
+/*     $NetBSD: subr_prf.c,v 1.167 2018/04/11 23:20:15 christos Exp $  */
 
 /*-
  * Copyright (c) 1986, 1988, 1991, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.166 2018/04/11 15:25:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.167 2018/04/11 23:20:15 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -494,7 +494,7 @@
 
        getnanouptime(&ts);
        n = snprintf(buf, sizeof(buf), "[% 9jd.%.9ld] ",
-           (intptr_t)ts.tv_sec, ts.tv_nsec);
+           (intmax_t)ts.tv_sec, ts.tv_nsec);
 
        for (int i = 0; i < n; i++)
                putone(buf[i], flags, tp);



Home | Main Index | Thread Index | Old Index