Skip to content

Commit 534fb64

Browse files
committed
Print out also visibility in file_open_ipc_handle()
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 827329b commit 534fb64

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
@@ -721,17 +721,17 @@ static umf_result_t file_open_ipc_handle(void *provider, void *providerIpcData,
721721
(void)utils_close_fd(fd);
722722
if (addr == NULL) {
723723
file_store_last_native_error(UMF_FILE_RESULT_ERROR_ALLOC_FAILED, errno);
724-
LOG_PERR("file mapping failed (path: %s, size: %zu, protection: %i, "
725-
"fd: %i, offset: %zu)",
724+
LOG_PERR("file mapping failed (path: %s, size: %zu, protection: %u, "
725+
"visibility: %u, fd: %i, offset: %zu)",
726726
file_ipc_data->path, size_aligned, file_ipc_data->protection,
727-
fd, offset_aligned);
727+
file_ipc_data->visibility, fd, offset_aligned);
728728
return UMF_RESULT_ERROR_MEMORY_PROVIDER_SPECIFIC;
729729
}
730730

731-
LOG_DEBUG("file mapped (path: %s, size: %zu, protection: %i, fd: %i, "
732-
"offset: %zu) at address %p",
733-
file_ipc_data->path, size_aligned, file_ipc_data->protection, fd,
734-
offset_aligned, addr);
731+
LOG_DEBUG("file mapped (path: %s, size: %zu, protection: %u, visibility: "
732+
"%u, fd: %i, offset: %zu) at address %p",
733+
file_ipc_data->path, size_aligned, file_ipc_data->protection,
734+
file_ipc_data->visibility, fd, offset_aligned, addr);
735735

736736
*ptr = addr;
737737

0 commit comments

Comments
 (0)