mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-04 21:08:10 +02:00
Linux: More explicit warning when no voltage found
Add device full path in warning if retrieving design voltage fails in up_device_supply_get_design_voltage(). Also helps diagnose bugs https://bugzilla.redhat.com/show_bug.cgi?id=847874 and https://bugzilla.redhat.com/show_bug.cgi?id=863524 Signed-off-by: Martin Pitt <martinpitt@gnome.org>
This commit is contained in:
parent
6d3a68d7d4
commit
470bc1150b
1 changed files with 1 additions and 1 deletions
|
|
@ -414,7 +414,7 @@ up_device_supply_get_design_voltage (const gchar *native_path)
|
|||
}
|
||||
|
||||
/* completely guess, to avoid getting zero values */
|
||||
g_warning ("no voltage values, using 10V as approximation");
|
||||
g_warning ("no voltage values for device %s, using 10V as approximation", native_path);
|
||||
voltage = 10.0f;
|
||||
out:
|
||||
g_free (device_type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue