]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Improve inode cache log messages
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 2 Oct 2022 17:06:03 +0000 (19:06 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 3 Oct 2022 13:42:25 +0000 (15:42 +0200)
src/InodeCache.cpp
test/suites/inode_cache.bash

index 8f09b98151916c9cd3a44b117dae8f88add9fe6d..df928d4fdca9947e6a1fe24e5ee8375ca04fc9b3 100644 (file)
@@ -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;
 }
index 755726caa98d60e56bc211ad549aa41c3e12896d..a09ac5d789cda9d9579327f5337feb52d51e1682 100644 (file)
@@ -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