mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CComponents: replace __FUNCTION__ with __func__
__func__ is more suitable for portability
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user