Skip to content

Commit 8e7937f

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 534fb64 commit 8e7937f

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
@@ -491,7 +491,7 @@ static umf_result_t devdax_open_ipc_handle(void *provider,
491491
LOG_DEBUG("devdax mapped (path: %s, size: %zu, protection: %i, fd: %i, "
492492
"offset: %zu) to address %p",
493493
devdax_ipc_data->path, length_aligned,
494-
devdax_ipc_data->protection, fd, offset_aligned, addr);
494+
devdax_ipc_data->protection, fd, offset_aligned, (void *)addr);
495495

496496
*ptr = addr;
497497

src/provider/provider_file_memory.c

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

736736
*ptr = addr;
737737

0 commit comments

Comments
 (0)