Use PRI?64 instead of ll?

This commit is contained in:
christos 2018-07-17 00:42:06 +00:00
parent f5fa2dbefe
commit 06603f680f
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dw_apb_uart.c,v 1.2 2018/05/27 19:54:45 jmcneill Exp $ */
/* $NetBSD: dw_apb_uart.c,v 1.3 2018/07/17 00:42:06 christos Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca>
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(1, "$NetBSD: dw_apb_uart.c,v 1.2 2018/05/27 19:54:45 jmcneill Exp $");
__KERNEL_RCSID(1, "$NetBSD: dw_apb_uart.c,v 1.3 2018/07/17 00:42:06 christos Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -133,7 +133,7 @@ dw_apb_uart_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 %#" PRIx64 ": %d", (uint64_t)addr, error);
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dwcmmc_fdt.c,v 1.5 2018/07/02 13:45:23 jmcneill Exp $ */
/* $NetBSD: dwcmmc_fdt.c,v 1.6 2018/07/17 00:42:06 christos Exp $ */
/*-
* Copyright (c) 2015-2018 Jared McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dwcmmc_fdt.c,v 1.5 2018/07/02 13:45:23 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: dwcmmc_fdt.c,v 1.6 2018/07/17 00:42:06 christos Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -129,7 +129,7 @@ dwcmmc_fdt_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",
aprint_error(": couldn't map %#" PRIx64 ": %d\n",
(uint64_t)addr, error);
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: fdt_subr.c,v 1.22 2018/06/11 19:54:39 jakllsch Exp $ */
/* $NetBSD: fdt_subr.c,v 1.23 2018/07/17 00:42:06 christos Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fdt_subr.c,v 1.22 2018/06/11 19:54:39 jakllsch Exp $");
__KERNEL_RCSID(0, "$NetBSD: fdt_subr.c,v 1.23 2018/07/17 00:42:06 christos Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -289,8 +289,8 @@ fdtbus_get_reg64(int phandle, u_int index, uint64_t *paddr, uint64_t *psize)
*paddr = fdtbus_decode_range(OF_parent(phandle), addr);
const char *name = fdt_get_name(fdtbus_get_data(),
fdtbus_phandle2offset(phandle), NULL);
aprint_debug("fdt: [%s] decoded addr #%u: %llx -> %llx\n",
name, index, addr, *paddr);
aprint_debug("fdt: [%s] decoded addr #%u: %" PRIx64
" -> %" PRIx64 "\n", name, index, addr, *paddr);
}
if (psize)
*psize = size;