From 93fb9ee6afdf7564f118973de9bde53b8cd35509 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 1 Dec 2007 08:48:17 +0000 Subject: [PATCH] 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 --- src/support/FileName.cpp | 1 + src/support/lyxsum.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 436501fe70..4418ab0884 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -255,6 +255,7 @@ unsigned long FileName::checksum() const LYXERR0('\\' << absFilename() << "\" is a directory!"); return 0; } + LYXERR0("Checksumming \"" << absFilename() << "\"."); return sum(absFilename().c_str()); } diff --git a/src/support/lyxsum.cpp b/src/support/lyxsum.cpp index 1463927a68..161a964506 100644 --- a/src/support/lyxsum.cpp +++ b/src/support/lyxsum.cpp @@ -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())