Comment out unneeded debug output and add some in checksum().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21894 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-01 08:48:17 +00:00
parent 022313a644
commit 93fb9ee6af
2 changed files with 4 additions and 3 deletions

View File

@ -255,6 +255,7 @@ unsigned long FileName::checksum() const
LYXERR0('\\' << absFilename() << "\" is a directory!");
return 0;
}
LYXERR0("Checksumming \"" << absFilename() << "\".");
return sum(absFilename().c_str());
}

View File

@ -54,7 +54,7 @@ namespace support {
unsigned long sum(char const * file)
{
LYXERR(Debug::FILES, "lyx::sum() using mmap (lightning fast)");
//LYXERR(Debug::FILES, "lyx::sum() using mmap (lightning fast)");
int fd = open(file, O_RDONLY);
if (!fd)
@ -116,7 +116,7 @@ using std::istreambuf_iterator;
unsigned long sum(char const * file)
{
LYXERR(Debug::FILES, "lyx::sum() using istreambuf_iterator (fast)");
//LYXERR(Debug::FILES, "lyx::sum() using istreambuf_iterator (fast)");
ifstream ifs(file, std::ios_base::in | std::ios_base::binary);
if (!ifs)
@ -134,7 +134,7 @@ using std::ios;
unsigned long sum(char const * file)
{
LYXERR(Debug::FILES, "lyx::sum() using istream_iterator (slow as a snail)");
//LYXERR(Debug::FILES, "lyx::sum() using istream_iterator (slow as a snail)");
// a directory may be passed here so we need to test it. (bug 3622)
if (file.isDirectory())