Skip to content

Fix one error message #809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/provider/provider_tracking.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static umf_result_t trackingFree(void *hProvider, void *ptr, size_t size) {
ret = umfMemoryProviderPutIPCHandle(p->hUpstream,
cache_value->providerIpcData);
if (ret != UMF_RESULT_SUCCESS) {
LOG_ERR("upstream provider is failed to put IPC handle, ptr=%p, "
LOG_ERR("upstream provider failed to put IPC handle, ptr=%p, "
"size=%zu, ret = %d",
ptr, size, ret);
}
Expand All @@ -371,7 +371,7 @@ static umf_result_t trackingFree(void *hProvider, void *ptr, size_t size) {

ret = umfMemoryProviderFree(p->hUpstream, ptr, size);
if (ret != UMF_RESULT_SUCCESS) {
LOG_ERR("upstream provider is failed to free the memory");
LOG_ERR("upstream provider failed to free the memory");
// Do not add memory back to the tracker,
// if it had not been removed.
if (ret_remove != UMF_RESULT_SUCCESS) {
Expand Down Expand Up @@ -537,18 +537,18 @@ static umf_result_t trackingGetIpcHandle(void *provider, const void *ptr,
ret = umfMemoryProviderGetIPCHandle(p->hUpstream, ptr, size,
providerIpcData);
if (ret != UMF_RESULT_SUCCESS) {
LOG_ERR("upstream provider is failed to get IPC handle");
LOG_ERR("upstream provider failed to get IPC handle");
return ret;
}

ret = umfMemoryProviderGetIPCHandleSize(p->hUpstream, &ipcDataSize);
if (ret != UMF_RESULT_SUCCESS) {
LOG_ERR("upstream provider is failed to get the size of IPC "
LOG_ERR("upstream provider failed to get the size of IPC "
"handle");
ret = umfMemoryProviderPutIPCHandle(p->hUpstream,
providerIpcData);
if (ret != UMF_RESULT_SUCCESS) {
LOG_ERR("upstream provider is failed to put IPC handle");
LOG_ERR("upstream provider failed to put IPC handle");
}
return ret;
}
Expand All @@ -560,7 +560,7 @@ static umf_result_t trackingGetIpcHandle(void *provider, const void *ptr,
ret = umfMemoryProviderPutIPCHandle(p->hUpstream,
providerIpcData);
if (ret != UMF_RESULT_SUCCESS) {
LOG_ERR("upstream provider is failed to put IPC handle");
LOG_ERR("upstream provider failed to put IPC handle");
}
return UMF_RESULT_ERROR_OUT_OF_HOST_MEMORY;
}
Expand All @@ -586,7 +586,7 @@ static umf_result_t trackingGetIpcHandle(void *provider, const void *ptr,
ret = umfMemoryProviderPutIPCHandle(p->hUpstream,
providerIpcData);
if (ret != UMF_RESULT_SUCCESS) {
LOG_ERR("upstream provider is failed to put IPC handle");
LOG_ERR("upstream provider failed to put IPC handle");
return ret;
}
if (insRes == ENOMEM) {
Expand Down Expand Up @@ -632,7 +632,7 @@ static umf_result_t trackingOpenIpcHandle(void *provider, void *providerIpcData,

ret = umfMemoryProviderOpenIPCHandle(p->hUpstream, providerIpcData, ptr);
if (ret != UMF_RESULT_SUCCESS) {
LOG_ERR("upstream provider is failed to open IPC handle");
LOG_ERR("upstream provider failed to open IPC handle");
return ret;
}
size_t bufferSize = getDataSizeFromIpcHandle(providerIpcData);
Expand All @@ -642,7 +642,7 @@ static umf_result_t trackingOpenIpcHandle(void *provider, void *providerIpcData,
"ret = %d",
*ptr, bufferSize, ret);
if (umfMemoryProviderCloseIPCHandle(p->hUpstream, *ptr, bufferSize)) {
LOG_ERR("upstream provider is failed to close IPC handle, ptr=%p, "
LOG_ERR("upstream provider failed to close IPC handle, ptr=%p, "
"size=%zu",
*ptr, bufferSize);
}
Expand Down
Loading