Skip to content

Commit 28d6fbc

Browse files
committed
Print out also visibility in file_open_ipc_handle()
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 481bf98 commit 28d6fbc

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
@@ -714,17 +714,17 @@ static umf_result_t file_open_ipc_handle(void *provider, void *providerIpcData,
714714
(void)utils_close_fd(fd);
715715
if (addr == NULL) {
716716
file_store_last_native_error(UMF_FILE_RESULT_ERROR_ALLOC_FAILED, errno);
717-
LOG_PERR("file mapping failed (path: %s, size: %zu, protection: %i, "
718-
"fd: %i, offset: %zu)",
717+
LOG_PERR("file mapping failed (path: %s, size: %zu, protection: %u, "
718+
"visibility: %u, fd: %i, offset: %zu)",
719719
file_ipc_data->path, size_aligned, file_ipc_data->protection,
720-
fd, offset_aligned);
720+
file_ipc_data->visibility, fd, offset_aligned);
721721
return UMF_RESULT_ERROR_MEMORY_PROVIDER_SPECIFIC;
722722
}
723723

724-
LOG_DEBUG("file mapped (path: %s, size: %zu, protection: %i, fd: %i, "
725-
"offset: %zu) at address %p",
726-
file_ipc_data->path, size_aligned, file_ipc_data->protection, fd,
727-
offset_aligned, addr);
724+
LOG_DEBUG("file mapped (path: %s, size: %zu, protection: %u, visibility: "
725+
"%u, fd: %i, offset: %zu) at address %p",
726+
file_ipc_data->path, size_aligned, file_ipc_data->protection,
727+
file_ipc_data->visibility, fd, offset_aligned, addr);
728728

729729
*ptr = addr;
730730

0 commit comments

Comments
 (0)