projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: coverity warns of uncaught exception during logging
[lttng-tools.git]
/
src
/
common
/
file-descriptor.hpp
diff --git
a/src/common/file-descriptor.hpp
b/src/common/file-descriptor.hpp
index 6354a12e2f96f5007ab67cd6cf4d98c004f546f9..9bda86731b500d77a136f5e0ac69877e5f7af296 100644
(file)
--- 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) {
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;
};
int _raw_fd;
};
-} /* namespace lttng */
\ No newline at end of file
+} /* namespace lttng */
This page took
0.02316 seconds
and
4
git commands to generate.