Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev Use PRIx64 printf format to make the 32...



details:   https://anonhg.NetBSD.org/src/rev/07eb76e4ab39
branches:  trunk
changeset: 836744:07eb76e4ab39
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Nov 03 14:56:36 2018 +0000

description:
Use PRIx64 printf format to make the 32bit version compile.

diffstat:

 sys/arch/sparc64/dev/jbus-i2c.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1be0ef6ec62f -r 07eb76e4ab39 sys/arch/sparc64/dev/jbus-i2c.c
--- a/sys/arch/sparc64/dev/jbus-i2c.c   Sat Nov 03 12:03:05 2018 +0000
+++ b/sys/arch/sparc64/dev/jbus-i2c.c   Sat Nov 03 14:56:36 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: jbus-i2c.c,v 1.2 2018/10/26 01:57:59 macallan Exp $    */
+/*     $NetBSD: jbus-i2c.c,v 1.3 2018/11/03 14:56:36 martin Exp $      */
 
 /*
  * Copyright (c) 2018 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: jbus-i2c.c,v 1.2 2018/10/26 01:57:59 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: jbus-i2c.c,v 1.3 2018/11/03 14:56:36 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -116,7 +116,7 @@
        struct jbusi2c_softc *sc = device_private(self);
        struct mainbus_attach_args *ma = aux;
 
-       aprint_normal(": addr %lx\n", ma->ma_reg[0].ur_paddr);
+       aprint_normal(": addr %" PRIx64 "\n", ma->ma_reg[0].ur_paddr);
 
        sc->sc_dev = self;
        sc->sc_node = ma->ma_node;



Home | Main Index | Thread Index | Old Index