Skip to content

Commit 3d9f85f

Browse files
committed
Add error messages when File provider is disabled
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent b108d7f commit 3d9f85f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/provider/provider_file_memory.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,37 +18,44 @@
1818
#include <umf/memory_provider_ops.h>
1919
#include <umf/providers/provider_file_memory.h>
2020

21+
#include "utils_log.h"
22+
2123
#if defined(_WIN32) || defined(UMF_NO_HWLOC)
2224

2325
umf_memory_provider_ops_t *umfFileMemoryProviderOps(void) {
2426
// not supported
27+
LOG_ERR("File memory provider is disabled!");
2528
return NULL;
2629
}
2730

2831
umf_result_t umfFileMemoryProviderParamsCreate(
2932
umf_file_memory_provider_params_handle_t *hParams, const char *path) {
3033
(void)hParams;
3134
(void)path;
35+
LOG_ERR("File memory provider is disabled!");
3236
return UMF_RESULT_ERROR_NOT_SUPPORTED;
3337
}
3438

3539
umf_result_t umfFileMemoryProviderParamsDestroy(
3640
umf_file_memory_provider_params_handle_t hParams) {
3741
(void)hParams;
42+
LOG_ERR("File memory provider is disabled!");
3843
return UMF_RESULT_ERROR_NOT_SUPPORTED;
3944
}
4045

4146
umf_result_t umfFileMemoryProviderParamsSetPath(
4247
umf_file_memory_provider_params_handle_t hParams, const char *path) {
4348
(void)hParams;
4449
(void)path;
50+
LOG_ERR("File memory provider is disabled!");
4551
return UMF_RESULT_ERROR_NOT_SUPPORTED;
4652
}
4753

4854
umf_result_t umfFileMemoryProviderParamsSetProtection(
4955
umf_file_memory_provider_params_handle_t hParams, unsigned protection) {
5056
(void)hParams;
5157
(void)protection;
58+
LOG_ERR("File memory provider is disabled!");
5259
return UMF_RESULT_ERROR_NOT_SUPPORTED;
5360
}
5461

@@ -57,6 +64,7 @@ umf_result_t umfFileMemoryProviderParamsSetVisibility(
5764
umf_memory_visibility_t visibility) {
5865
(void)hParams;
5966
(void)visibility;
67+
LOG_ERR("File memory provider is disabled!");
6068
return UMF_RESULT_ERROR_NOT_SUPPORTED;
6169
}
6270

0 commit comments

Comments
 (0)