Skip to content

Commit

Permalink
Fix nasa#686, Use errno in clock_getres error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Dec 14, 2020
1 parent 9407cdf commit 8121f5b
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 @@ -225,7 +225,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 8121f5b

Please sign in to comment.