Skip to content

Commit

Permalink
Merge pull request #687 from skliper/fix686-use_errno
Browse files Browse the repository at this point in the history
Fix #686, Use errno in clock_getres error reporting
  • Loading branch information
astrogeco authored Dec 18, 2020
2 parents 25cd5df + 8121f5b commit 8f9db2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/posix/src/os-impl-timebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ int32 OS_Posix_TimeBaseAPI_Impl_Init(void)
status = clock_getres(OS_PREFERRED_CLOCK, &clock_resolution);
if (status != 0)
{
OS_DEBUG("failed in clock_getres: %s\n", strerror(status));
OS_DEBUG("failed in clock_getres: %s\n", strerror(errno));
return_code = OS_ERROR;
break;
}
Expand Down

0 comments on commit 8f9db2c

Please sign in to comment.