[PATCH 1/2] Linux: Fix warning in up_device_supply_get_design_voltage

2013-08-24 Thread Timothée Ravier
This avoids filling the logs with the unnecessary warning line: GLib-CRITICAL **: g_ascii_strcasecmp: assertion `s1 != NULL' failed as seen in https://bugzilla.redhat.com/show_bug.cgi?id=847874 and https://bugzilla.redhat.com/show_bug.cgi?id=863524 --- src/linux/up-device-supply.c | 2 +- 1 file c

[PATCH 2/2] Linux: More explicit warning when no voltage found

2013-08-24 Thread Timothée Ravier
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 --- src/linux/up-device-supply.c | 2 +- 1 file changed, 1