Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/fdt Use PRI?64 instead of ll?
details: https://anonhg.NetBSD.org/src/rev/db479fdb587e
branches: trunk
changeset: 320726:db479fdb587e
user: christos <christos%NetBSD.org@localhost>
date: Tue Jul 17 00:42:06 2018 +0000
description:
Use PRI?64 instead of ll?
diffstat:
sys/dev/fdt/dw_apb_uart.c | 6 +++---
sys/dev/fdt/dwcmmc_fdt.c | 6 +++---
sys/dev/fdt/fdt_subr.c | 8 ++++----
3 files changed, 10 insertions(+), 10 deletions(-)
diffs (83 lines):
diff -r c9c23d64d715 -r db479fdb587e sys/dev/fdt/dw_apb_uart.c
--- a/sys/dev/fdt/dw_apb_uart.c Tue Jul 17 00:38:27 2018 +0000
+++ b/sys/dev/fdt/dw_apb_uart.c Tue Jul 17 00:42:06 2018 +0000
@@ -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@localhost>
@@ -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 @@
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;
}
diff -r c9c23d64d715 -r db479fdb587e sys/dev/fdt/dwcmmc_fdt.c
--- a/sys/dev/fdt/dwcmmc_fdt.c Tue Jul 17 00:38:27 2018 +0000
+++ b/sys/dev/fdt/dwcmmc_fdt.c Tue Jul 17 00:42:06 2018 +0000
@@ -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@localhost>
@@ -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 @@
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;
}
diff -r c9c23d64d715 -r db479fdb587e sys/dev/fdt/fdt_subr.c
--- a/sys/dev/fdt/fdt_subr.c Tue Jul 17 00:38:27 2018 +0000
+++ b/sys/dev/fdt/fdt_subr.c Tue Jul 17 00:42:06 2018 +0000
@@ -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@localhost>
@@ -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 @@
*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;
Home |
Main Index |
Thread Index |
Old Index