Clean-up: coverity warns of uncaught exception during logging
[lttng-tools.git] / src / common / file-descriptor.hpp
index 6354a12e2f96f5007ab67cd6cf4d98c004f546f9..9bda86731b500d77a136f5e0ac69877e5f7af296 100644 (file)
@@ -41,10 +41,7 @@ public:
 
                const auto ret = ::close(_raw_fd);
                if (ret) {
-                       PERROR("%s",
-                                       fmt::format("Failed to close file descriptor: fd = {}",
-                                                       _raw_fd)
-                                                       .c_str());
+                       PERROR("Failed to close file descriptor: fd=%i", _raw_fd);
                }
        }
 
@@ -63,4 +60,4 @@ private:
        int _raw_fd;
 };
 
-} /* namespace lttng */
\ No newline at end of file
+} /* namespace lttng */
This page took 0.023911 seconds and 4 git commands to generate.