Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[udev] Suppress repetitive property warnings. Fixes JB#40394
Usb-moded expects to see POWER_SUPPLY_PRESENT and POWER_SUPPLY_TYPE properties defined for usb power-supply devices. When this is not the case, it emits warnings and applies various fallbacks. Since the properties get re-evaluated periodically, this also leads to the same warnings being repeated. Refactor the code so that in default verbosity the property warnings are emitted only during what looks like cable connect / disconnect. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
49 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters