mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
022313a644
commit
93fb9ee6af
@ -255,6 +255,7 @@ unsigned long FileName::checksum() const
|
||||
LYXERR0('\\' << absFilename() << "\" is a directory!");
|
||||
return 0;
|
||||
}
|
||||
LYXERR0("Checksumming \"" << absFilename() << "\".");
|
||||
return sum(absFilename().c_str());
|
||||
}
|
||||
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user