]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/DiskIO/Mmapped/MmappedFile.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / DiskIO / Mmapped / MmappedFile.cc
index 2fde2ed773fafa9ab980f86651fa398457ffc7bf..9eb6228ee244006cbdcb1b7b906fbe068fa89a34 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -74,15 +74,16 @@ MmappedFile::open(int flags, mode_t, RefCount<IORequestor> callback)
     assert(fd < 0);
 
     /* Simulate async calls */
-    fd = file_open(path_ , flags);
+    fd = file_open(path_, flags);
     ioRequestor = callback;
 
     if (fd < 0) {
-        debugs(79,3, HERE << "open error: " << xstrerror());
+        int xerrno = errno;
+        debugs(79,3, "open error: " << xstrerr(xerrno));
         error_ = true;
     } else {
         ++store_open_disk_fd;
-        debugs(79,3, HERE << "FD " << fd);
+        debugs(79,3, "FD " << fd);
 
         // setup mapping boundaries
         struct stat sb;