summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-10-02 19:06:03 +0200
committerJoel Rosdahl <joel@rosdahl.net>2022-10-03 15:42:25 +0200
commit908ea60a0e6c5523c8639149784567868eabaef6 (patch)
treea2de33d1f74d81881b542ba4a11442699d86b031
parentfbe45b77f24c17723d3930014e8b3d6d6eeb238d (diff)
downloadccache-908ea60a0e6c5523c8639149784567868eabaef6.tar.gz
chore: Improve inode cache log messages
-rw-r--r--src/InodeCache.cpp6
-rw-r--r--test/suites/inode_cache.bash2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/InodeCache.cpp b/src/InodeCache.cpp
index 8f09b981..df928d4f 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 755726ca..a09ac5d7 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