From: Joel Rosdahl Date: Sun, 2 Oct 2022 17:06:03 +0000 (+0200) Subject: chore: Improve inode cache log messages X-Git-Tag: v4.7~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=908ea60a0e6c5523c8639149784567868eabaef6;p=thirdparty%2Fccache.git chore: Improve inode cache log messages --- diff --git a/src/InodeCache.cpp b/src/InodeCache.cpp index 8f09b9815..df928d4fd 100644 --- a/src/InodeCache.cpp +++ b/src/InodeCache.cpp @@ -209,7 +209,7 @@ InodeCache::mmap_file(const std::string& inode_cache_file) } m_sr = sr; if (m_config.debug()) { - LOG("inode cache file loaded: {}", inode_cache_file); + LOG("Inode cache file loaded: {}", inode_cache_file); } return true; } @@ -430,7 +430,7 @@ InodeCache::get(const std::string& path, return false; } - LOG("inode cache {}: {}", found ? "hit" : "miss", path); + LOG("Inode cache {}: {}", found ? "hit" : "miss", path); if (m_config.debug()) { if (found) { @@ -475,7 +475,7 @@ InodeCache::put(const std::string& path, return false; } - LOG("inode cache insert: {}", path); + LOG("Inode cache insert: {}", path); return true; } diff --git a/test/suites/inode_cache.bash b/test/suites/inode_cache.bash index 755726caa..a09ac5d78 100644 --- a/test/suites/inode_cache.bash +++ b/test/suites/inode_cache.bash @@ -30,7 +30,7 @@ expect_inode_cache_type() { local source_file=$2 local type=$3 - local actual=$(grep -c "inode cache $type: $source_file" ${source_file/%.c/.o}.*.ccache-log) + local actual=$(grep -c "Inode cache $type: $source_file" ${source_file/%.c/.o}.*.ccache-log) if [ $actual -ne $expected ]; then test_failed_internal "Found $actual (expected $expected) $type for $source_file" fi