]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: core: update two debug messages
authorAndré Draszik <andre.draszik@linaro.org>
Fri, 9 Jan 2026 08:38:37 +0000 (08:38 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 9 Jan 2026 13:37:54 +0000 (13:37 +0000)
commit96e7a88d32de2554a5d7e54e87eb03d445dd6924
tree5207f1cfd6c4d1dfc6807f7f9a5391b8ef29f4fd
parent9ace4753a5202b02191d54e9fdf7f9e3d02b85eb
regulator: core: update two debug messages

1)
In print_constraints_debug(), the power budget is printed as:

   lldo2: 450 <--> 1300 mV at 900 mV 2147483647 mW budge, enabled

(note the missing t in budget). This is because there is a --count just
below the call to scnprintf(), to make space for the comma. All similar
calls to scnprintf() above add an extra space to the format string to
allow for that, but this one doesn't, so the last character t is
stripped instead. Update the format string to fix the message.

2)
Add the name of the supply to the failure message printed when the
supply can not be resolved when debug messages are enabled to help with
debug.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20260109-regulators-defer-v2-1-1a25dc968e60@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c