diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp index 3c892e21a..95de54101 100644 --- a/src/gui/filebrowser.cpp +++ b/src/gui/filebrowser.cpp @@ -562,7 +562,7 @@ bool CFileBrowser::readDir_std(const std::string & dirname, CFileList* flist) // printf("file.Name: '%s', getFileName: '%s' getPath: '%s'\n",file.Name.c_str(),file.getFileName().c_str(),file.getPath().c_str()); if(stat64((file.Name).c_str(),&statbuf) != 0) - perror("stat error"); + fprintf(stderr, "stat '%s' error: %m\n", file.Name.c_str()); else { file.Mode = statbuf.st_mode; diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index 71f739c75..fab0174cd 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -2432,7 +2432,7 @@ bool CMovieBrowser::readDir(const std::string & dirname, CFileList* flist) // printf("file.Name: '%s', getFileName: '%s' getPath: '%s'\n",file.Name.c_str(),file.getFileName().c_str(),file.getPath().c_str()); if (my_stat((file.Name).c_str(),&statbuf) != 0) - perror("stat error"); + fprintf(stderr, "stat '%s' error: %m\n", file.Name.c_str()); else { file.Mode = statbuf.st_mode; diff --git a/src/gui/pictureviewer.cpp b/src/gui/pictureviewer.cpp index 366bfafb2..f948f7285 100644 --- a/src/gui/pictureviewer.cpp +++ b/src/gui/pictureviewer.cpp @@ -450,7 +450,7 @@ int CPictureViewerGui::show() pic.Type = tmp.substr(tmp.rfind('.')+1); struct stat statbuf; if (stat(pic.Filename.c_str(),&statbuf) != 0) - printf("stat error"); + fprintf(stderr, "stat '%s' error: %m\n", pic.Filename.c_str()); pic.Date = statbuf.st_mtime; playlist.push_back(pic); }