More replace __FILE__ with __file__

This commit is contained in:
M. Liebmann
2016-01-17 06:12:27 +01:00
parent 43bf709669
commit c7b6026ac2
2 changed files with 4 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ void CScreenSaver::Start()
if(!thrScreenSaver) if(!thrScreenSaver)
{ {
//printf("[%s] %s: starting thread\n", __FILE__, __FUNCTION__); //printf("[%s] %s: starting thread\n", __file__, __FUNCTION__);
pthread_create(&thrScreenSaver, NULL, ScreenSaverPrg, (void*) this); pthread_create(&thrScreenSaver, NULL, ScreenSaverPrg, (void*) this);
pthread_detach(thrScreenSaver); pthread_detach(thrScreenSaver);
} }
@@ -290,12 +290,12 @@ void CScreenSaver::paint()
do { do {
clr.i_color = rand(); clr.i_color = rand();
brightness = (unsigned int)clr.uc_color.r * 19595 + (unsigned int)clr.uc_color.g * 38469 + (unsigned int)clr.uc_color.b * 7471; brightness = (unsigned int)clr.uc_color.r * 19595 + (unsigned int)clr.uc_color.g * 38469 + (unsigned int)clr.uc_color.b * 7471;
//printf("[%s] %s: brightness: %d\n", __FILE__, __FUNCTION__, brightness>> 16); //printf("[%s] %s: brightness: %d\n", __file__, __FUNCTION__, brightness>> 16);
} }
while(brightness >> 16 < 80); while(brightness >> 16 < 80);
clr.i_color &= 0x00FFFFFF; clr.i_color &= 0x00FFFFFF;
//printf("[%s] %s: clr.i_color: r %02x g %02x b %02x a %02x\n", __FILE__, __FUNCTION__, clr.uc_color.r, clr.uc_color.g, clr.uc_color.b, clr.uc_color.a); //printf("[%s] %s: clr.i_color: r %02x g %02x b %02x a %02x\n", __file__, __FUNCTION__, clr.uc_color.r, clr.uc_color.g, clr.uc_color.b, clr.uc_color.a);
} }
else else
clr.i_color = COL_DARK_GRAY; clr.i_color = COL_DARK_GRAY;

View File

@@ -48,7 +48,7 @@ static int unused_demux;
do { \ do { \
if (fedebug) \ if (fedebug) \
fprintf(stdout, "[%s:%s:%d] " fmt "\n", \ fprintf(stdout, "[%s:%s:%d] " fmt "\n", \
__FILE__, __FUNCTION__, \ __file__, __func__, \
__LINE__ , ## args); \ __LINE__ , ## args); \
} while (0) } while (0)