Skip to content

Commit

Permalink
Merge pull request #53 from spiiroin/iphb_device_warning
Browse files Browse the repository at this point in the history
Do not complain about missing /dev/iphb by default
  • Loading branch information
spiiroin committed Jan 31, 2014
2 parents 22ed77a + bcfaffd commit eae0156
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions modules/iphb.c
Expand Up @@ -1327,8 +1327,17 @@ static void kernelfd_open(void)
if( !kernel_module_load_error_logged ) {
kernel_module_load_error_logged = true;
errno = saved_errno;
dsme_log(LOG_ERR, PFIX"failed to open kernel connection '%s' (%m)",
HB_KERNEL_DEVICE);
if( errno == ENOENT ) {
/* Having a kernel that supports iphb wakeups is a special case.
*
* Not having it just means we are missing one wakeup source to
* synchronize with i.e. no need to create noise about it on
* default verbosity level */
dsme_log(LOG_INFO, PFIX"kernel does not support iphb wakeups");
}
else
dsme_log(LOG_ERR, PFIX"failed to open kernel connection '%s' (%m)",
HB_KERNEL_DEVICE);
}

return;
Expand Down

0 comments on commit eae0156

Please sign in to comment.