Skip to content

Commit f09b12d

Browse files
committed
Fix warnings about format specifies type
Fix warnings about format specifies type: warning: format specifies type 'void *' but the argument \ has type 'char *' [-Wformat-pedantic] Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 5988ed2 commit f09b12d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/provider/provider_devdax_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ static umf_result_t devdax_open_ipc_handle(void *provider,
478478
LOG_DEBUG("devdax mapped (path: %s, size: %zu, protection: %i, fd: %i, "
479479
"offset: %zu) to address %p",
480480
devdax_ipc_data->path, length_aligned,
481-
devdax_ipc_data->protection, fd, offset_aligned, addr);
481+
devdax_ipc_data->protection, fd, offset_aligned, (void *)addr);
482482

483483
*ptr = addr;
484484

src/provider/provider_file_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ static umf_result_t file_open_ipc_handle(void *provider, void *providerIpcData,
724724
LOG_DEBUG("file mapped (path: %s, size: %zu, protection: %u, visibility: "
725725
"%u, fd: %i, offset: %zu) at address %p",
726726
file_ipc_data->path, size_aligned, file_ipc_data->protection,
727-
file_ipc_data->visibility, fd, offset_aligned, addr);
727+
file_ipc_data->visibility, fd, offset_aligned, (void *)addr);
728728

729729
*ptr = addr;
730730

0 commit comments

Comments
 (0)