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:
Timothée Ravier 2013-08-25 00:41:42 +02:00 committed by Martin Pitt
parent 6d3a68d7d4
commit 470bc1150b

View file

@ -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);