Use PRIxBUSADDR

This commit is contained in:
skrll 2019-10-18 06:50:08 +00:00
parent d3f45d9f81
commit be5f8c7ee9
5 changed files with 19 additions and 19 deletions

View File

@ -1,9 +1,9 @@
/* $NetBSD: cycv_clkmgr.c,v 1.3 2019/10/01 18:00:07 chs Exp $ */
/* $NetBSD: cycv_clkmgr.c,v 1.4 2019/10/18 06:50:08 skrll Exp $ */
/* This file is in the public domain. */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cycv_clkmgr.c,v 1.3 2019/10/01 18:00:07 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: cycv_clkmgr.c,v 1.4 2019/10/18 06:50:08 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -138,8 +138,8 @@ cycv_clkmgr_attach(device_t parent, device_t self, void *aux)
sc->sc_bst = faa->faa_bst;
error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
if (error) {
aprint_error(": couldn't map %#llx: %d",
(uint64_t) addr, error);
aprint_error(": couldn't map %#" PRIxBUSADDR ": %d",
addr, error);
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: cycv_dwcmmc.c,v 1.3 2019/05/24 10:37:39 jmcneill Exp $ */
/* $NetBSD: cycv_dwcmmc.c,v 1.4 2019/10/18 06:50:08 skrll Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cycv_dwcmmc.c,v 1.3 2019/05/24 10:37:39 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: cycv_dwcmmc.c,v 1.4 2019/10/18 06:50:08 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -125,8 +125,8 @@ cycv_dwcmmc_attach(device_t parent, device_t self, void *aux)
sc->sc_dmat = faa->faa_dmat;
error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
if (error) {
aprint_error(": couldn't map %#llx: %d\n",
(uint64_t)addr, error);
aprint_error(": couldn't map %#" PRIxBUSADDR ": %d\n",
addr, error);
return;
}

View File

@ -1,9 +1,9 @@
/* $NetBSD: cycv_rstmgr.c,v 1.2 2018/10/14 18:53:01 aymeric Exp $ */
/* $NetBSD: cycv_rstmgr.c,v 1.3 2019/10/18 06:50:08 skrll Exp $ */
/* This file is in the public domain. */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cycv_rstmgr.c,v 1.2 2018/10/14 18:53:01 aymeric Exp $");
__KERNEL_RCSID(0, "$NetBSD: cycv_rstmgr.c,v 1.3 2019/10/18 06:50:08 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -77,8 +77,8 @@ cycv_rstmgr_attach(device_t parent, device_t self, void *aux)
sc->sc_bst = faa->faa_bst;
error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
if (error) {
aprint_error(": couldn't map %#llx: %d",
(uint64_t) addr, error);
aprint_error(": couldn't map %#" PRIxBUSADDR ": %d",
addr, error);
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: rk_pwm.c,v 1.1 2019/05/01 10:41:33 jmcneill Exp $ */
/* $NetBSD: rk_pwm.c,v 1.2 2019/10/18 06:51:02 skrll Exp $ */
/*-
* Copyright (c) 2019 Jared McNeill <jmcneill@invisible.ca>
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(1, "$NetBSD: rk_pwm.c,v 1.1 2019/05/01 10:41:33 jmcneill Exp $");
__KERNEL_RCSID(1, "$NetBSD: rk_pwm.c,v 1.2 2019/10/18 06:51:02 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -221,8 +221,8 @@ rk_pwm_attach(device_t parent, device_t self, void *aux)
sc->sc_bst = faa->faa_bst;
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;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ti_com.c,v 1.4 2018/12/08 17:46:10 thorpej Exp $ */
/* $NetBSD: ti_com.c,v 1.5 2019/10/18 06:58:06 skrll Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca>
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(1, "$NetBSD: ti_com.c,v 1.4 2018/12/08 17:46:10 thorpej Exp $");
__KERNEL_RCSID(1, "$NetBSD: ti_com.c,v 1.5 2019/10/18 06:58:06 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -102,7 +102,7 @@ ti_com_attach(device_t parent, device_t self, void *aux)
error = bus_space_map(bst, addr, size, 0, &bsh);
if (error) {
aprint_error(": couldn't map %#llx: %d", (uint64_t)addr, error);
aprint_error(": couldn't map %#" PRIxBUSADDR ": %d", addr, error);
return;
}