]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix arguments to swaplog renaming calls
authorkinkie@squid-cache.org <>
Sat, 3 Dec 2011 17:05:32 +0000 (18:05 +0100)
committerkinkie@squid-cache.org <>
Sat, 3 Dec 2011 17:05:32 +0000 (18:05 +0100)
src/fs/ufs/store_dir_ufs.cc

index a2522b039580074bd1ff623e439eb1899fe51d4d..609c32842c3ac2607e6d54ddc51089a5af144c2d 100644 (file)
@@ -743,14 +743,14 @@ UFSSwapDir::closeTmpSwapLog()
 
     if (xrename(new_path, swaplog_path) < 0) {
         debugs(50, DBG_IMPORTANT, "ERROR: " << swaplog_path << ": " << xstrerror());
-        fatalf("Failed to rename log file %s with .new", swaplog_path);
+        fatalf("Failed to rename log file %s to %s.new", swaplog_path, swaplog_path);
     }
 
     fd = file_open(swaplog_path, O_WRONLY | O_CREAT | O_BINARY);
 
     if (fd < 0) {
         debugs(50, DBG_IMPORTANT, "ERROR: " << swaplog_path << ": " << xstrerror());
-        fatalf("Failed to open swap log ", swaplog_path);
+        fatalf("Failed to open swap log %s", swaplog_path);
     }
 
     safe_free(swaplog_path);