Skip to content

Commit b108d7f

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/provider/provider_devdax_memory.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
#include <umf/memory_provider_ops.h>
1818
#include <umf/providers/provider_devdax_memory.h>
1919

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

2224
umf_memory_provider_ops_t *umfDevDaxMemoryProviderOps(void) {
2325
// not supported
26+
LOG_ERR("DevDax memory provider is disabled!");
2427
return NULL;
2528
}
2629

@@ -30,12 +33,14 @@ umf_result_t umfDevDaxMemoryProviderParamsCreate(
3033
(void)hParams;
3134
(void)path;
3235
(void)size;
36+
LOG_ERR("DevDax memory provider is disabled!");
3337
return UMF_RESULT_ERROR_NOT_SUPPORTED;
3438
}
3539

3640
umf_result_t umfDevDaxMemoryProviderParamsDestroy(
3741
umf_devdax_memory_provider_params_handle_t hParams) {
3842
(void)hParams;
43+
LOG_ERR("DevDax memory provider is disabled!");
3944
return UMF_RESULT_ERROR_NOT_SUPPORTED;
4045
}
4146

@@ -45,13 +50,15 @@ umf_result_t umfDevDaxMemoryProviderParamsSetDeviceDax(
4550
(void)hParams;
4651
(void)path;
4752
(void)size;
53+
LOG_ERR("DevDax memory provider is disabled!");
4854
return UMF_RESULT_ERROR_NOT_SUPPORTED;
4955
}
5056

5157
umf_result_t umfDevDaxMemoryProviderParamsSetProtection(
5258
umf_devdax_memory_provider_params_handle_t hParams, unsigned protection) {
5359
(void)hParams;
5460
(void)protection;
61+
LOG_ERR("DevDax memory provider is disabled!");
5562
return UMF_RESULT_ERROR_NOT_SUPPORTED;
5663
}
5764

0 commit comments

Comments
 (0)