Index: simplebus.c =================================================================== RCS file: /cvs/src/sys/arch/arm64/dev/simplebus.c,v retrieving revision 1.8 diff -u -p -r1.8 simplebus.c --- simplebus.c 1 Jun 2017 21:19:07 -0000 1.8 +++ simplebus.c 2 Jan 2019 04:50:49 -0000 @@ -149,6 +149,26 @@ simplebus_submatch(struct device *self, return 0; } +int +simplebus_print(void *aux, const char *pnp) +{ + struct fdt_attach_args *fa = aux; + char name[32]; + + if (!pnp) + return (QUIET); + + if (OF_getprop(fa->fa_node, "name", name, sizeof(name)) > 0) { + name[sizeof(name) - 1] = 0; + printf("\"%s\"", name); + } else + printf("node %u", fa->fa_node); + + printf(" at %s", pnp); + + return (UNCONF); +} + /* * Look for a driver that wants to be attached to this node. */ @@ -221,7 +241,8 @@ simplebus_attach_node(struct device *sel fa.fa_dmat->_flags |= BUS_DMA_COHERENT; } - config_found_sm(self, &fa, NULL, simplebus_submatch); + config_found_sm(self, &fa, sc->sc_early ? NULL : simplebus_print, + simplebus_submatch); free(fa.fa_reg, M_DEVBUF, fa.fa_nreg * sizeof(struct fdt_reg)); free(fa.fa_intr, M_DEVBUF, fa.fa_nintr * sizeof(uint32_t));