improve dmesg output to help with debugging.
authordlg <dlg@openbsd.org>
Sun, 19 Mar 2023 10:18:17 +0000 (10:18 +0000)
committerdlg <dlg@openbsd.org>
Sun, 19 Mar 2023 10:18:17 +0000 (10:18 +0000)
commitd921c7cf963abc2ae60e6abbd0eab6683e516c0b
tree999ad44ed53f558d02ed7b1d0ebe70b380b4b561
parent7bc2c437d759549a0c055779bb8382456328d84a
improve dmesg output to help with debugging.

for SoCs that can provide multiple instances of rkclock, let them
provide a name that will be printed during attach so you can tell
which one is doing what.

when rkclock_set_frequency isn't handling a clock, have it print
which rkclock instance isn't handling a clock. while here, print
the clock index the same way the #define refers to them.

ok kettenis@
sys/dev/fdt/rkclock.c