diff options
author | Geert Uytterhoeven <[email protected]> | 2020-10-05 15:15:46 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-10-05 16:18:36 +0100 |
commit | c845f21ad86528f888db27849f2d315e08126816 (patch) | |
tree | 4203079842ea41ea2bfd2644947e902b8794b283 /scripts/gdb/linux/device.py | |
parent | 0b5a21870694ab4c75a783f77b158840908f04a1 (diff) |
regulator: Make constraint debug processing conditional on DEBUG
If debugging is disabled, print_constraints() does not print the actual
constraints, but still performs some processing and string formatting,
only to throw away the result later.
Fix this by moving all constraint debug processing to a separate
function, and replacing it by a dummy when debugging is disabled.
This reduces kernel size by almost 800 bytes (on arm/arm64).
Signed-off-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions