diff options
author | Dimitri Staessens <[email protected]> | 2023-08-30 16:07:03 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2023-08-30 17:12:41 +0200 |
commit | de2b10441c7835d4221dea3b4414478f72c549f6 (patch) | |
tree | ead66900f5d6dcd7ecc5b61f97b11a75d10cd123 /src/ipcpd/shim-data.c | |
parent | 3a321cc77e0f6d29167a925dd706fc36e5aa7cdd (diff) | |
download | ouroboros-de2b10441c7835d4221dea3b4414478f72c549f6.tar.gz ouroboros-de2b10441c7835d4221dea3b4414478f72c549f6.zip |
ipcpd: Revise logging
This revises the logging in the IPCPs to be a more consistent and
reduce duplicate messages in nested functions.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/shim-data.c')
-rw-r--r-- | src/ipcpd/shim-data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/shim-data.c b/src/ipcpd/shim-data.c index 840b8224..34f875b1 100644 --- a/src/ipcpd/shim-data.c +++ b/src/ipcpd/shim-data.c @@ -30,7 +30,7 @@ #define OUROBOROS_PREFIX "shim-data" -#include <ouroboros/endian.h> +#include <ouroboros/hash.h> #include <ouroboros/logs.h> #include <ouroboros/list.h> #include <ouroboros/time_utils.h> @@ -446,9 +446,9 @@ uint64_t shim_data_dir_get_addr(struct shim_data * data, pthread_rwlock_rdlock(&data->dir_lock); entry = find_dir_entry_any(data, hash); - if (entry == NULL) { pthread_rwlock_unlock(&data->dir_lock); + log_warn("No address for " HASH_FMT32 ".", HASH_VAL32(hash)); return 0; /* undefined behaviour, 0 may be a valid address */ } |