]> git.ipfire.org Git - thirdparty/systemd.git/commit
sleep: reduce double logging and improve messages and comments a bit
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Jan 2023 14:47:58 +0000 (15:47 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Jan 2023 21:06:05 +0000 (22:06 +0100)
commit099810a65b8d7e7e83098edff144643b77011a85
tree743bad4dae2177b55808a36c2764d8aa175f77aa
parent31f62bdd79472c32d52408956d5c82e9991ca425
sleep: reduce double logging and improve messages and comments a bit

read_battery_capacity_percentage() was already logging, but with a slightly
different wording.

More could be done, I just touched the most noticable places. Especially
in debug messages, it is much more useful to be direct about what couldn't
be accessed or parsed, instead of providing "descriptive names" which are
not useful to the user at all, who then needs to read the code to figure out
what was the actual property name.
src/shared/sleep-config.c
src/sleep/sleep.c