diff options
Diffstat (limited to 'hald/linux2/addons/addon-hid-ups.c')
-rw-r--r-- | hald/linux2/addons/addon-hid-ups.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/hald/linux2/addons/addon-hid-ups.c b/hald/linux2/addons/addon-hid-ups.c index 4a47db22..1361ed6d 100644 --- a/hald/linux2/addons/addon-hid-ups.c +++ b/hald/linux2/addons/addon-hid-ups.c @@ -48,7 +48,8 @@ #include "libhal/libhal.h" -#include "../probing/shared.h" +#include "../../util_helper.h" +#include "../../logger.h" #define UPS_USAGE 0x840000 #define UPS_SERIAL 0x8400fe @@ -110,7 +111,7 @@ ups_get_string (int fd, int sindex) if (ioctl (fd, HIDIOCGSTRING, &sdesc) < 0) { return ""; } - dbg ("foo: '%s'", sdesc.value); + HAL_DEBUG (("foo: '%s'", sdesc.value)); return sdesc.value; } @@ -272,8 +273,8 @@ main (int argc, char *argv[]) hal_set_proc_title_init (argc, argv); - _set_debug (); - + setup_logger (); + udi = getenv ("UDI"); if (udi == NULL) goto out; |