Skip to content

Commit

Permalink
Add udev error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapio Rantala committed Apr 21, 2011
1 parent 8456153 commit eef0d8a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/usb_moded-udev.c
Expand Up @@ -59,11 +59,16 @@ gboolean hwal_init(void)
}
ret = udev_monitor_filter_add_match_subsystem_devtype(mon, "power_supply", NULL);
if(ret =! 0)
return FALSE;

{
log_err("Udev match failed.\n");
return FALSE;
}
ret = udev_monitor_enable_receiving (mon);
if(ret =! 0)
return FALSE;
{
log_err("Failed to enable monitor recieving.\n");
return FALSE;
}

/* check if we are already connected */
udev_parse(dev);
Expand Down

0 comments on commit eef0d8a

Please sign in to comment.