diff --git a/src/gui/screensaver.cpp b/src/gui/screensaver.cpp index 5541800be..c21b76ff0 100644 --- a/src/gui/screensaver.cpp +++ b/src/gui/screensaver.cpp @@ -36,7 +36,7 @@ #include #include "audiomute.h" #include "screensaver.h" - +#include #include extern CInfoClock *InfoClock; @@ -167,7 +167,7 @@ bool CScreenSaver::ReadDir() /* open dir */ if((dir=opendir(dir_name)) == NULL) { - fprintf(stderr,"[CScreenSaver] Error opendir ...\n"); + fprintf(stderr,"[CScreenSaver] %s - %d : error open dir...\n", __func__, __LINE__); return ret; } @@ -207,12 +207,12 @@ bool CScreenSaver::ReadDir() /* close pointer */ if(closedir(dir) == -1) - printf("[CScreenSaver] Error no closed %s\n", dir_name); + dprintf(DEBUG_NORMAL, "[CScreenSaver] %s - %d : Error no closed %s\n", __func__, __LINE__, dir_name); if(!v_bg_files.empty()) ret = true; else - printf("[CScreenSaver] no picture found\n"); + dprintf(DEBUG_NORMAL, "[CScreenSaver] %s - %d : no picture found\n", __func__, __LINE__); return ret; } @@ -230,7 +230,7 @@ void CScreenSaver::PaintPicture() return; } - printf("[CScreenSaver] PaintPicture: %s\n", v_bg_files.at(index).c_str()); + dprintf(DEBUG_INFO, "[CScreenSaver] %s - %d : %s\n", __func__, __LINE__, v_bg_files.at(index).c_str()); m_viewer->ShowImage(v_bg_files.at(index).c_str(), false /*unscaled*/); index++;