Skip to content

Commit 42e8e38

Browse files
committed
Print out also visibility in file_open_ipc_handle()
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 7204f2b commit 42e8e38

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/provider/provider_file_memory.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -710,17 +710,17 @@ static umf_result_t file_open_ipc_handle(void *provider, void *providerIpcData,
710710
(void)utils_close_fd(fd);
711711
if (addr == NULL) {
712712
file_store_last_native_error(UMF_FILE_RESULT_ERROR_ALLOC_FAILED, errno);
713-
LOG_PERR("file mapping failed (path: %s, size: %zu, protection: %i, "
714-
"fd: %i, offset: %zu)",
713+
LOG_PERR("file mapping failed (path: %s, size: %zu, protection: %u, "
714+
"visibility: %u, fd: %i, offset: %zu)",
715715
file_ipc_data->path, size_aligned, file_ipc_data->protection,
716-
fd, offset_aligned);
716+
file_ipc_data->visibility, fd, offset_aligned);
717717
return UMF_RESULT_ERROR_MEMORY_PROVIDER_SPECIFIC;
718718
}
719719

720-
LOG_DEBUG("file mapped (path: %s, size: %zu, protection: %i, fd: %i, "
721-
"offset: %zu) at address %p",
722-
file_ipc_data->path, size_aligned, file_ipc_data->protection, fd,
723-
offset_aligned, addr);
720+
LOG_DEBUG("file mapped (path: %s, size: %zu, protection: %u, visibility: "
721+
"%u, fd: %i, offset: %zu) at address %p",
722+
file_ipc_data->path, size_aligned, file_ipc_data->protection,
723+
file_ipc_data->visibility, fd, offset_aligned, addr);
724724

725725
*ptr = addr;
726726

0 commit comments

Comments
 (0)