Fix error report to reflect the fact that clock_gettime returns 0 or -1 with error code in errno.
This commit is contained in:
@@ -78,7 +78,7 @@ extern "C" epicsShareFunc void epicsShareAPI
|
||||
else if(timeout>3600.0) timeout = 3600.0;
|
||||
status = clock_gettime(CLOCK_REALTIME,wakeTime);
|
||||
if(status) {
|
||||
printf("clock_gettime failed with error %s\n",strerror(status));
|
||||
printf("clock_gettime failed with error %s\n",strerror(errno));
|
||||
cantProceed("convertDoubleToWakeTime");
|
||||
}
|
||||
wait.tv_sec = timeout;
|
||||
|
||||
Reference in New Issue
Block a user