Skip to content

Commit 8f9db2c

Browse files
authored
Merge pull request #687 from skliper/fix686-use_errno
Fix #686, Use errno in clock_getres error reporting
2 parents 25cd5df + 8121f5b commit 8f9db2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/posix/src/os-impl-timebase.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ int32 OS_Posix_TimeBaseAPI_Impl_Init(void)
226226
status = clock_getres(OS_PREFERRED_CLOCK, &clock_resolution);
227227
if (status != 0)
228228
{
229-
OS_DEBUG("failed in clock_getres: %s\n", strerror(status));
229+
OS_DEBUG("failed in clock_getres: %s\n", strerror(errno));
230230
return_code = OS_ERROR;
231231
break;
232232
}

0 commit comments

Comments
 (0)