X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ffile-descriptor.hpp;h=9bda86731b500d77a136f5e0ac69877e5f7af296;hp=6354a12e2f96f5007ab67cd6cf4d98c004f546f9;hb=88277a52069ed0135254ce29da617ebb6ecddbb8;hpb=57b90af7b1977684094706818e387433f50b7d48 diff --git a/src/common/file-descriptor.hpp b/src/common/file-descriptor.hpp index 6354a12e2..9bda86731 100644 --- a/src/common/file-descriptor.hpp +++ b/src/common/file-descriptor.hpp @@ -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 */