Skip to content

Commit ef22d33

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 42e8e38 commit ef22d33

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
@@ -483,7 +483,7 @@ static umf_result_t devdax_open_ipc_handle(void *provider,
483483
LOG_DEBUG("devdax mapped (path: %s, size: %zu, protection: %i, fd: %i, "
484484
"offset: %zu) to address %p",
485485
devdax_ipc_data->path, length_aligned,
486-
devdax_ipc_data->protection, fd, offset_aligned, addr);
486+
devdax_ipc_data->protection, fd, offset_aligned, (void *)addr);
487487

488488
*ptr = addr;
489489

src/provider/provider_file_memory.c

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

725725
*ptr = addr;
726726

0 commit comments

Comments
 (0)