projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardize log levels used by logging statements across the project
[babeltrace.git]
/
src
/
fd-cache
/
fd-cache.c
diff --git
a/src/fd-cache/fd-cache.c
b/src/fd-cache/fd-cache.c
index 6d62518997665a743ce9dcf6cad716e876964400..cb1472b9a84347ebfcffec000dddd7b0c8f772d0 100644
(file)
--- a/
src/fd-cache/fd-cache.c
+++ b/
src/fd-cache/fd-cache.c
@@
-169,13
+169,13
@@
struct bt_fd_cache_handle *bt_fd_cache_get_handle(struct bt_fd_cache *fdc,
fd_internal = g_new0(struct fd_handle_internal, 1);
if (!fd_internal) {
fd_internal = g_new0(struct fd_handle_internal, 1);
if (!fd_internal) {
- BT_LOGE
("Failed to allocate fd internal handle
");
+ BT_LOGE
_STR("Failed to allocate internal FD handle.
");
goto error;
}
file_key = g_new0(struct file_key, 1);
if (!fd_internal) {
goto error;
}
file_key = g_new0(struct file_key, 1);
if (!fd_internal) {
- BT_LOGE
("Failed to allocate file key
");
+ BT_LOGE
_STR("Failed to allocate file key.
");
goto error;
}
goto error;
}
@@
-233,7
+233,7
@@
void bt_fd_cache_put_handle(struct bt_fd_cache *fdc,
close_ret = close(fd_internal->fd_handle.fd);
if (close_ret == -1) {
close_ret = close(fd_internal->fd_handle.fd);
if (close_ret == -1) {
- BT_LOG
W
_ERRNO("Failed to close file descriptor",
+ BT_LOG
E
_ERRNO("Failed to close file descriptor",
": fd=%d", fd_internal->fd_handle.fd);
}
ret = g_hash_table_remove(fdc->cache, fd_internal->key);
": fd=%d", fd_internal->fd_handle.fd);
}
ret = g_hash_table_remove(fdc->cache, fd_internal->key);
This page took
0.023994 seconds
and
4
git commands to generate.