CComponents: replace __FUNCTION__ with __func__

__func__ is more suitable for portability
This commit is contained in:
2013-12-15 16:57:11 +01:00
parent 1583f98f7c
commit 8442b39c28
8 changed files with 32 additions and 32 deletions

View File

@@ -300,7 +300,7 @@ bool CComponentsFrmClock::startThread()
if(!cl_thread) {
int res = pthread_create (&cl_thread, NULL, initClockThread, ptr) ;
if (res != 0){
printf("[CComponentsFrmClock] [%s] pthread_create %s\n", __FUNCTION__, strerror(errno));
printf("[CComponentsFrmClock] [%s] pthread_create %s\n", __func__, strerror(errno));
return false;
}
}
@@ -313,13 +313,13 @@ bool CComponentsFrmClock::stopThread()
if(cl_thread) {
int res = pthread_cancel(cl_thread);
if (res != 0){
printf("[CComponentsFrmClock] [%s] pthread_cancel %s\n", __FUNCTION__, strerror(errno));
printf("[CComponentsFrmClock] [%s] pthread_cancel %s\n", __func__, strerror(errno));
return false;
}
res = pthread_join(cl_thread, NULL);
if (res != 0){
printf("[CComponentsFrmClock] [%s] pthread_join %s\n", __FUNCTION__, strerror(errno));
printf("[CComponentsFrmClock] [%s] pthread_join %s\n", __func__, strerror(errno));
return false;
}
}