Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/nvidia Use PRIxBUSADDR and remove unnecessary cast



details:   https://anonhg.NetBSD.org/src/rev/0d9a054215d4
branches:  trunk
changeset: 365197:0d9a054215d4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Aug 05 15:37:10 2018 +0000

description:
Use PRIxBUSADDR and remove unnecessary cast

diffstat:

 sys/arch/arm/nvidia/tegra_i2c.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r a7bb5cad2567 -r 0d9a054215d4 sys/arch/arm/nvidia/tegra_i2c.c
--- a/sys/arch/arm/nvidia/tegra_i2c.c   Sun Aug 05 15:28:21 2018 +0000
+++ b/sys/arch/arm/nvidia/tegra_i2c.c   Sun Aug 05 15:37:10 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_i2c.c,v 1.19 2018/07/16 23:11:47 christos Exp $ */
+/* $NetBSD: tegra_i2c.c,v 1.20 2018/08/05 15:37:10 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_i2c.c,v 1.19 2018/07/16 23:11:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_i2c.c,v 1.20 2018/08/05 15:37:10 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -136,8 +136,8 @@
        sc->sc_cid = device_unit(self);
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {
-               aprint_error(": couldn't map %#" PRIx64 ": %d",
-                   (uint64_t)addr, error);
+               aprint_error(": couldn't map %#" PRIxBUSADDR ": %d",
+                   addr, error);
                return;
        }
        mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_VM);



Home | Main Index | Thread Index | Old Index