diff options
author | Richard Hughes <richard@hughsie.com> | 2010-11-01 11:28:31 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2010-11-01 11:28:31 +0000 |
commit | 59893663fbc0b9b5951b69b99a849d4ae5a2f3fd (patch) | |
tree | 095c1acca94e25920a64635b849d4de654c1d984 /src/freebsd/up-device-supply.c | |
parent | ed34986e08fc45e5337c3edae181c3caa23c99d2 (diff) | |
download | upower-59893663fbc0b9b5951b69b99a849d4ae5a2f3fd.tar.gz |
Port from EggDebug to the GLib built-in logging framework
Diffstat (limited to 'src/freebsd/up-device-supply.c')
-rw-r--r-- | src/freebsd/up-device-supply.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/freebsd/up-device-supply.c b/src/freebsd/up-device-supply.c index b499d57..d318bd6 100644 --- a/src/freebsd/up-device-supply.c +++ b/src/freebsd/up-device-supply.c @@ -40,8 +40,6 @@ #include "up-acpi-native.h" #include "up-util.h" -#include "egg-debug.h" - #include "up-types.h" #include "up-device-supply.h" @@ -175,22 +173,22 @@ up_device_supply_battery_set_properties (UpDevice *device, UpAcpiNative *native) up_acpi_native_get_unit (native); fd = open (UP_ACPIDEV, O_RDONLY); if (fd < 0) { - egg_warning ("unable to open %s: '%s'", UP_ACPIDEV, g_strerror (errno)); + g_warning ("unable to open %s: '%s'", UP_ACPIDEV, g_strerror (errno)); return FALSE; } if (ioctl (fd, ACPIIO_BATT_GET_BIF, &battif) == -1) { - egg_warning ("ioctl ACPIIO_BATT_GET_BIF failed for battery %d: '%s'", battif.unit, g_strerror (errno)); + g_warning ("ioctl ACPIIO_BATT_GET_BIF failed for battery %d: '%s'", battif.unit, g_strerror (errno)); goto end; } if (ioctl (fd, ACPIIO_BATT_GET_BST, &battst) == -1) { - egg_warning ("ioctl ACPIIO_BATT_GET_BST failed for battery %d: '%s'", battst.unit, g_strerror (errno)); + g_warning ("ioctl ACPIIO_BATT_GET_BST failed for battery %d: '%s'", battst.unit, g_strerror (errno)); goto end; } if (ioctl (fd, ACPIIO_BATT_GET_BATTINFO, &battinfo) == -1) { - egg_warning ("ioctl ACPIIO_BATT_GET_BATTINFO failed for battery %d: '%s'", battinfo.unit, g_strerror (errno)); + g_warning ("ioctl ACPIIO_BATT_GET_BATTINFO failed for battery %d: '%s'", battinfo.unit, g_strerror (errno)); goto end; } @@ -356,7 +354,7 @@ up_device_supply_coldplug (UpDevice *device) native_path = up_acpi_native_get_path (native); driver = up_acpi_native_get_driver (native); if (native_path == NULL) { - egg_warning ("could not get native path for %p", device); + g_warning ("could not get native path for %p", device); goto out; } @@ -370,7 +368,7 @@ up_device_supply_coldplug (UpDevice *device) goto out; } - egg_warning ("invalid device %s with driver %s", native_path, driver); + g_warning ("invalid device %s with driver %s", native_path, driver); out: return ret; |