@@ -19,7 +19,7 @@ AutoCloseFD openLockFile(const std::filesystem::path & path, bool create)
1919
2020 fd = open (path.c_str (), O_CLOEXEC | O_RDWR | (create ? O_CREAT : 0 ), 0600 );
2121 if (!fd && (create || errno != ENOENT))
22- throw SysError (" opening lock file ' %1%' " , path);
22+ throw SysError (" opening lock file %1%" , path);
2323
2424 return fd;
2525}
@@ -83,7 +83,7 @@ bool PathLocks::lockPaths(const std::set<std::filesystem::path> & paths, const s
8383 checkInterrupt ();
8484 std::filesystem::path lockPath = path + " .lock" ;
8585
86- debug (" locking path ' %1%' " , path);
86+ debug (" locking path %1%" , path);
8787
8888 AutoCloseFD fd;
8989
@@ -106,19 +106,19 @@ bool PathLocks::lockPaths(const std::set<std::filesystem::path> & paths, const s
106106 }
107107 }
108108
109- debug (" lock acquired on ' %1%' " , lockPath);
109+ debug (" lock acquired on %1%" , lockPath);
110110
111111 /* Check that the lock file hasn't become stale (i.e.,
112112 hasn't been unlinked). */
113113 struct stat st;
114114 if (fstat (fd.get (), &st) == -1 )
115- throw SysError (" statting lock file ' %1%' " , lockPath);
115+ throw SysError (" statting lock file %1%" , lockPath);
116116 if (st.st_size != 0 )
117117 /* This lock file has been unlinked, so we're holding
118118 a lock on a deleted file. This means that other
119119 processes may create and acquire a lock on
120120 `lockPath', and proceed. So we must retry. */
121- debug (" open lock file ' %1%' has become stale" , lockPath);
121+ debug (" open lock file %1% has become stale" , lockPath);
122122 else
123123 break ;
124124 }
@@ -137,9 +137,9 @@ void PathLocks::unlock()
137137 deleteLockFile (i.second , i.first );
138138
139139 if (close (i.first ) == -1 )
140- printError (" error (ignored): cannot close lock file on ' %1%' " , i.second );
140+ printError (" error (ignored): cannot close lock file on %1%" , i.second );
141141
142- debug (" lock released on ' %1%' " , i.second );
142+ debug (" lock released on %1%" , i.second );
143143 }
144144
145145 fds.clear ();
0 commit comments