From bbd59784cb46db48a0f2111066acd4636ca6714d Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 18 Apr 2023 05:28:41 +0000 Subject: [PATCH] tweak a printf for an unhandled clock in rkclock_get_frequency. this makes rkclock_get_frequency more like rkclock_set_frequency. --- sys/dev/fdt/rkclock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c index 9f42d4b437b..7780c6c57ba 100644 --- a/sys/dev/fdt/rkclock.c +++ b/sys/dev/fdt/rkclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkclock.c,v 1.74 2023/04/18 05:27:04 dlg Exp $ */ +/* $OpenBSD: rkclock.c,v 1.75 2023/04/18 05:28:41 dlg Exp $ */ /* * Copyright (c) 2017, 2018 Mark Kettenis * @@ -526,7 +526,7 @@ rkclock_get_frequency(struct rkclock_softc *sc, uint32_t idx) clk = rkclock_lookup(sc, idx); if (clk == NULL) { - printf("%s: 0x%08x\n", __func__, idx); + printf("%s(%s, %u)\n", __func__, sc->sc_dev.dv_xname, idx); return 0; } -- 2.20.1