of: dynamic: Refactor changeset action printing to common helpers
authorRob Herring <robh@kernel.org>
Fri, 18 Aug 2023 20:40:58 +0000 (15:40 -0500)
committerRob Herring <robh@kernel.org>
Mon, 21 Aug 2023 22:09:57 +0000 (17:09 -0500)
commit27a02f265e25a6d6136d07d0187fd02fe1691fd7
treeadcb6bf9a53f5c3e7e7bbd320b7937e55f43ba63
parentdfb9758a4af19b5d04fe943c56651675038f29aa
of: dynamic: Refactor changeset action printing to common helpers

Several places print the changeset action with node and property
details. Refactor these into a common printing helper. The complicating
factor is some prints are debug and some are errors. Solve this with a
bit of preprocessor magic.

Some cases printed the 'cset' which was the changeset entry pointer
rather than the whole changeset itself. The changeset entry is not all that
interesting and gets obfuscated by default anyways. So just drop it.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230801-dt-changeset-fixes-v3-3-5f0410e007dd@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/dynamic.c